2009年8月6日星期四

Re: [fw-mvc] Logic within view layout

It's OK to add display logic in a template -- as long as the logic is for display purposes only. But if you want to encapsulate your logic in another file to make your layout easier to read, you may want to use a view helper.

http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.custom

--
Hector


On Thu, Aug 6, 2009 at 5:01 AM, dbutler83 <declan.butler@gmail.com> wrote:
Hi, I'm using Zend_Layout and within my layout.phtml I would like to call some logic to determine what gets displayed in a menu based on user login. My question is where do I write the logic to do that and how do I call within the layout template? Thanks, Declan

View this message in context: Logic within view layout
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: