i want to add a conditional statement to my layout that tests:
- the controller param in the url
- the existence of a zend_auth()
what's the best way to achieve that? i have tried testing the $this->_getParam('controller')
in the layout but got an error. i could just set that variable in all the controllers but that seems kind of dumb. how to best set a variable that i could use later from the layout with some conditional logic? or should i instead add my conditional logic that is inside a view helper and then loaded into the layout?