ZF docs have documentation on using Zend_Layout as a standalone component. The doc page is available at:

http://framework.zend.com/manual/en/zend.layout.quickstart.html#zend.layout.quickstart.standalone

Best regards,
Jim
http://www.iDimensionz.com - professional web site programming and affordable web site design.

Ian Rickert wrote:

Panman wrote:
Hi, want to start using ZF with a project and would like to properly use
the layout and views. Just to note, this is in a non-MCV environment.

So from my understanding the first would be to create a layout for the
overall design. Would I then make the header, footer, side nav, and
content separate views? Also, what is the best setup to allow AJAX
requests to the page? For example, I'd also like to have a login box in
the header that would be AJAX enabled.

Thanks for any input!


Hey there!  I found the Zend_Layout section of the manual to be helpful with
this. I'm not 100% sure how to implement it in a non-MVC environment.
As for creating separate views for each of those areas of your page, it
seems to me that you could do it that way with Zend_Layout, but if those
things do not change significantly from page to page, it might not be worth
it (again, I'm just starting out and don't know very well)...
I haven't gotten into the AJAX side of things in ZF yet, but I suspect in
this case you'd want to create the DIV or whatever you'll be interacting
with in your view or layout, and then use Javascript to manipulate it from
there.

Anyone feel free to correct me on any point here, looking to learn.

Ian

Reply via email to