It's pretty simple, really:
echo $this->Session->setFlash('Some Error.', 'flash_error');
echo $this->Session->setFlash('Some Success.', 'flash_success');
echo $this->Session->setFlash('Some Notice.', 'flash_notice');

And so on.
My success message is using jQuery to fade away, but my notice stays
until it's dismissed.
Why complicate it?
It's all in the layout files.

On Apr 6, 11:53 am, WebbedIT <[email protected]> wrote:
> Is that not over simplified?  How do you specify from the controller
> an update message as opposed to an error or warning notice?  Surely
> all such messages share very the same code and just need a class
> change to alter the colour and icon used so having multiple templates
> seems a little OTT.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to