Hi Jurian,
I got it to work. But factory config part took me a while to get it up
and running. It should look like this:
public function getViewHelperConfig()
{
return array(
'factories' => array(
'ShowMessages' => function($sm) {
$plugin = $sm->getServiceLocator()
->get('ControllerPluginManager')
->get('flashMessenger');
$helper = new ShowMessages($plugin);
return $helper;
},
),
);
}
Within the getViewHelperConfig method() the ControllerPluginManager
needs to be accessed via the service locator.
Regards,
Ralf
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]