I have a controller with a number of views/actions. I am using zend_navigation and breadcrumbs for the main navigation. However when certain views/actions are rendered i want to add a "control panel" with local navigation within this group of views/actions. Adding the panel is no problem it's the logic to decide which view/action i am in.
I can id the view/action from the controller level with
$controller = $this->getRequest()->getControllerName();
$action = $this->getRequest()->getActionName();
But can i pass that to the layout, or do i need to or can i detect where i am in the layout? I suppose one option would be to create the views with the control panel in a separate controller but that seems like a dumb way of doing it.