On 10/1/06, ski.nalicio.us <[EMAIL PROTECTED]> wrote:

Thanks Olle.

What I had was:
<?php if($session->check(' Message.flash')) $session->flash(); ?>

I have now changed it to:
<?php echo $session->flash(); ?>

This works on my login page that has been routed to show up as the very
first page of my domain.

All other pages like edit, view and delete are scaffolded pages and the
flash messages still dont show up like they did before i used my own
layout file and css!  Is this common when moving from the default
layout/css setup?

Check your /app/views/layouts/default.thtml for the $session->flash(); call.  That is ideally where you want to put it instead of on individual views.  That way it is always available and you can set a message anywhere in your app.

There are no disadvantages to using the session method for messages other than you have to use sessions for it to work.  This is pretty much the standard cake way to deliver errors or messages to the user.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to