Skip to content

Instantly share code, notes, and snippets.

@bjyoungblood
Created September 15, 2012 00:13
Show Gist options
  • Save bjyoungblood/3725715 to your computer and use it in GitHub Desktop.
Save bjyoungblood/3725715 to your computer and use it in GitHub Desktop.
profiler-view-helper
<?php
namespace Application\View\Helper;
use Zend\View\Helper\AbstractHelper;
class DbQueryProfiles extends AbstractHelper
{
protected $profiler;
public function __invoke()
{
return $this->profiler->getQueryProfiles();
}
public function getProfiler()
{
return $this->profiler;
}
public function setProfiler($profiler)
{
$this->profiler = $profiler;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment