hi,

i'm wondering what the most ideal way of handling minor layout adjustments is using ZF. in symfony, there is something called 'slots' to achieve just what i want, however i want to use ZF for this project ;-) i have one layout, default.phtml. all pages look exactly the same except for the shop module. in the shop there is a shopping cart displayed on top of my regular subnavigation menu. as this is just 1 modification, i don't feel like creating an additional layout file shop.phtml. i fixed this echo-ing a placeholder called 'shoppingcart' in my default.phtml. when it isn't set, it just won't show up. in my shopping cart actions, i set $this->view->layout()->shoppingcart to my action $this->view->action('a','b').
this does the job for me, but i am wondering if this is the right way.

thanks for any response,

dimitri

Reply via email to