|
|||
|
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:
Any ideas how to recognize this? Thanks in advance |
|
||||
|
each time the dispatcher dispatches an action the module, controller, action are stored in the params array and are available to the controller via $this->_request->getParam('controller') and the like. You could create an array and push this info to that array to track the call history and stash this array in the session or registry or something.
__________________
Zend Framework Resources: Zend Webinars | Reference Manual | API Docs | Books | FreeNode: #zftalk Getting Started Tutorials: Getting started with ZF | Getting started with Zend Auth |
|
||||
|
May getStack from the actionStack helper? I'm not very familiar with the actionStack helper...
__________________
Zend Framework Resources: Zend Webinars | Reference Manual | API Docs | Books | FreeNode: #zftalk Getting Started Tutorials: Getting started with ZF | Getting started with Zend Auth |
![]() |
| Thread Tools | |
| Display Modes | |
|
|