Hey, Probably best by creating a view helper.
Vince. On Mon, Apr 27, 2009 at 8:55 AM, prado <[email protected]> wrote: > > BTW Vince > > How can i use this below straight from the view without putting in a > variable from the controller? > > cheers > > > vince. wrote: > > > > Hey, > > > > You mean something like this: > > > > $controllername = $this->getRequest()->getControllerName(); > > $actionname = $this->getRequest()->getActionName(); > > > > Vince. > > > > > > On Mon, Apr 27, 2009 at 6:15 AM, prado <[email protected]> wrote: > > > >> > >> Hi > >> > >> I need some tasks to be done based on which controller and action is > >> being > >> called. Is there a way in Zend Framework to know which ones are being > >> called?? > >> > >> cheers > >> -- > >> View this message in context: > >> > http://www.nabble.com/how-to-know-which-controller-and-action-is-being-called-tp23249460p23249460.html > >> Sent from the Zend Framework mailing list archive at Nabble.com. > >> > >> > > > > > > -- > > Vincent Gabriel. > > Lead Developer, Senior Support. > > Zend Certified Engineer. > > Zend Framework Certified Engineer. > > -- http://www.vadimg.co.il/ > > > > > > -- > View this message in context: > http://www.nabble.com/how-to-know-which-controller-and-action-is-being-called-tp23249460p23250533.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- http://www.vadimg.co.il/
