[EMAIL PROTECTED] ha escrito:
> $this->render(view, layout);
>
> It is set to autorender by default and layout is set to default by
> default.
>
> So, you could pass the parameter and either make the parameter the
> exact layout name and just do a test for it not being null to render
> with $layout set.
>
> function method($page = null, $layout = null)
> {
> ..some code..
> if ($layout != null) {
> $this->render('method', $layout);
> }
> }
yeah thanks Troy, I got this by doing a similar thing myself in the
end.
Luke
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---