Hi to everyone, I've almost done with my first ZF project, I used Zend_Layout
for managing website template and I tought that action view helper is the
right choice to render little blocks of dynamic data present in every page
of the site such as the breadcrumbs and a side menubar. So in my
layout.phtml file I have these lines:
...
<div id="content">
<?=$this->action('breadcrumbs', 'widget')?>
<div class="startrow">
<div class="left">
<?=$this->layout()->content?>
</div>
<div class="right">
<?=$this->action('sidebar', 'widget')?>
</div>
</div>
</div>
...
I use the left layout for rendering main content and I wish to render
breadcrumbs and sidebar using an apposite controller. Now I finished the
main functional part of the site and when I try to write breadcrumbsAction
of Widget controller, I discovered that getActionName and getControllerName
always return "breadcrumbs" and "widget".
When I made the layout and the controller structure I tought that I will be
able to detect the controller and action called in bradcrumbs action in
order to fill the view with the right data, but I was wrong, and now I don't
know how to solve this problem with little modification to all my stuff.
Any suggestion on how implement this thing.
Thanks.
--
View this message in context:
http://www.nabble.com/How-to-render-breadcrumbs-using-action-view-helper-tp18329592p18329592.html
Sent from the Zend Framework mailing list archive at Nabble.com.