In the Zend Framework, I have an action helper that loads a login form on most pages. This happens in the preDispatch () method of the Helper, and I want setAction () in the form so that it returns to the current URL.
What is the best way to access the current URL / route from the Assistant? Access the request (through the action controller), then pull getActionName () and getControllerName () and connect them to baseURL ()?
Is there an easier way? (A URI string is required to set an action as a parameter).
Thank!
source
share