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
--
View this message in context:
http://www.nabble.com/Using-Layout---Views-tp19800314p19800615.html
Sent from the Zend Framework mailing list archive at Nabble.com.