Search code examples
phpzend-frameworkzend-layout

Zend Portlet Kind of a Layout


I am using Zend Framework. Want to make a portlet kind of view, which is like each div is generated by a different controller/view pair.

Like the layout -

<div id="news">
   <?php echo $this->layout()->news; ?> -- calls news/recent
</div>
<div id="blogs">
   <?php echo $this->layout()->blogs; ?> -- calls blogs/recent
</div>

First I thought I would get it done by Action Stack, but later I found out that was not the right way to do it.

What are the other ways to achieve the same result? Thanks in advance for any help.


Solution

  • I suppose you could use Views Helpers : create one helper for each one of your portlets.