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 t开发者_StackOverflow中文版he 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.
Nandini, I think you might be better off using Action Helpers. This tutorial from Matthew Weier O'Phinney explains why, http://weierophinney.net/matthew/archives/246-Using-Action-Helpers-To-Implement-Re-Usable-Widgets.html.
I suppose you could use Views Helpers : create one helper for each one of your portlets.
精彩评论