Skip to content

Instantly share code, notes, and snippets.

@bjyoungblood
Created September 15, 2012 00:15
Show Gist options
  • Save bjyoungblood/3725720 to your computer and use it in GitHub Desktop.
Save bjyoungblood/3725720 to your computer and use it in GitHub Desktop.
db-profile-helper-service-config
<?php
public function getViewHelperConfig()
{
return array(
'factories' => array(
'dbqueryprofiles' => function($sm) {
$sm = $sm->getServiceLocator();
$helper = new View\Helper\DbQueryProfiles;
$helper->setProfiler($sm->get('Zend\Db\Adapter\Adapter')->getProfiler());
return $helper;
}
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment