Hello Friends,
I'm learning ZF for two weeks so far. Like it so much. I'd like to ask, what is the best practice for layouts? I got one layout and I need to include few variables for it. Do I need to do this in every controller?
The second question is about hiding one part of the layout. Currently I'm doing this as following:
if(Zend_Controller_Front::getInstance()->getRequest()->getControllerName() !== 'page') { ?>
<div>
This div should be displayed only on one page
</div>
<?php } ?>
Is this a good practice? Maybe you could share your own?
Thanks in advance for any replies and comments! Cheers!