What is best practice to create dynamic sidebar or other non content layout places with zend framework. At this moment I created controller witch i called WidgetsController. In
We'd like some more details, i.e what sort of content is shown in the sidebars, how you show them (i.e using a In CodeIgniter which also uses the The sidebar view contains the logic for showing the menu items. Usually it is a static menu, but if it was dynamic and had to be fetched from the database, I would do this:
, Model, View, Controller
format, we create a view called 'sidebar.php' and in the Header
view, we include a call to this sidebar view, i.e:
.......
some_model->getMenuItems();
foreach ($items as $item):
?>