Hi All,

I want to use the redirector helper from within another action helper and I call:
Zend_Controller_Action_HelperBroker::getHelper('redirector')->goto('index');

This yields an error:
Fatal error: Cannot access protected property Shop_Action_Helper_InitShop::$_actionController in D:\ZendFramework\library\Zend\Controller\Action\HelperBroker.php on line 305

Should I use magic __get to return $this->_actionController, or is this a bug and should the helper broker call $this->getActionController for example?

Or should I not call this static function from within an action helper?

It also happens if I use this static call from within an action controller, but there I circumvented the error by:
public $_actionController;//bug workaround
in my action controller, but this is a hack of course.

Or should I not be calling it statically at all? I think I saw an example somewhere that demonstrated static usage.

Bart

--
Bart McLeod
Space Web Internet Team
Middenlaan 47
6865 VN Heveadorp
The Netherlands
t +31(0)26 3392952
m 06 51 51 89 71
@ [email protected]
www.spaceweb.nl
zce logo zce PHP 5 logo

Bart McLeod is a Zend Certified Engineer.

Click to verify!

Reply via email to