2010年4月26日星期一

[fw-mvc] Navigation, sidebar blocks, etc...

Hi,

 

I’m looking for the best way to include ‘sidebar content’ into my Zend Framework application.

 

I fixed the navigation problem, by setting it up in the bootstrap (ZFv1.10.2) and adding it to the Zend_Navigation registry.

But now I want to add random product blocks in the sidebar of pages, linking to the actual product page in the application.

 

I’ve used a custom Zend_Controller_Action class, where I’ve put ‘global logic’, and used the ActionStack to forward the request to a navigation action, but that doesn’t feel right.

 

Is the postDispatch hook (helper) the correct place for this?

 

Regards,

 

Jachim Coudenys

没有评论: