Hi,

I am actually migrating my project to CakePHP 1.3. Before, I was using
a custom layout for flash messages. For example.
$this->Session->setFlash('some message', 'custom');
Then, I found out that in 1.3 they moved this to elements, so I need
to move my app/views/layout/custom.ctp to app/views/elements/
custom.ctp

Inside the custom.ctp there were a variable $content_for_layout to
display the message that you passed to the first argument of
Session::setFlash() method. When I tried to reload the page an error
occur says "Undefined variable content_for_layout.

Do you know how to fix this? Thanks in advance.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

Reply via email to