All you need to do is type $this->render('view_name','ajax');
ajax is a layout which just contains <?php echo $content_for_layout; ?
> without all the usual layout.ctp stuff.
this also follows if for whatever reason you need to change the
layout. (checkout the manual page on controllers for how render works)
Simon
On Jul 4, 5:07 pm, Contrid <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> Within my current view, I want to include another view.
> I tried using :
>
> <?= $this -> render('view_name'); ?>
>
> ...but it renders the entire layout.
> I just want the content inside of the view file.
>
> How can I accomplish this?
> Thank you for your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---