Hi guys,
I have the following question: How to identify which action/controller was initially invoked? So I can determine which actions has been called via _forward or with action stack helper. Basically if I have the following helper:
PHP Code:
class Controller_Plugin_Test extends Zend_Controller_Plugin_Abstract
{
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$action = $this->getRequest()->getActionName();
}
}
in the preDispatch method I would like to know if this was the primary/originate action requested or it was forwarded. I try to use isDispatched() but seems it has different meaning from one I thought.
Any ideas how to recognize this?
Thanks in advance