Can you give a concrete example? The $content_for_layout var contains
the rendered output based on the view. Perhaps you'd be better off
rendering one view or another, based on your conditions. That is, put
your IF/ELSE in your controller action.

On Wed, Jun 3, 2009 at 11:27 PM, simon...@gmail.com <simon...@gmail.com> wrote:
>
> Good Night,
>
>
> How can I change the variable "$content_for_layout" depending on a
> situation?
>
> Like if I use and IF and ELSE. For IF the "$content_for_layout" would
> have a value and for ELSE, there would be a different value.
>
> How could I do that?
>
>
> Regards,
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to