On Wed, Nov 4, 2009 at 7:31 AM, Alayn Gortazar <[email protected]> wrote:
> Hi Diego, > > You can get the Controllers instance with > Zend_Controller_Front::getInstance(), so: > > $controllerName = > Zend_Controller_Front::getInstance()->getRequest()->getControllerName(); > > But whatever the reason for doing this, it kind of smells like a lot of PHP code for the layout layer. You might want to consider moving this logic back somewhere earlier in the request cycle. -- Demand health care for everyone: http://mobilizeforhealthcare.org/ -- David Mintz http://davidmintz.org/
