Hi guys,
I have a view where I need to render the same content when its an ajax
call another time when its first page render. I don't want a duplicate
of the table_contents.thtml file even if its uses elements to create
itself. So in the table_content.html view file has :
<div id='table_content'>
$this->render("table_contents");
</div>
and in the controller when I do an ajax update I do :
$this->render('table_contents', 'ajax');
the issue is when you render a view inside a page causes it to render
the view with its layout so it closes the html tag and the body tag at
the end of the render call, and anything after is techinically invalid
since the html tag has been closed. So my initial page render is
actually wrong due to the table_contents being a view file and not an
element file.
I know you can use elements for "content" which I do to actually create
the details of the table_contents.thml but when the page loaded the
first time its table_content div is the same as when its called from
ajax and I hate having a duplicate view thml file.
Cheers
Grant
...........................................
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti>
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
<<attachment: small.jpg>>
