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: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to