Hi,

I am migrating from 1.2 to cakephp 1.3 and am trying to
switch to the new $this->Session->setFlash functionality that
uses elements:

Projects Controller:
function edit($id = null) {
...
$this->Session->setFlash('The Project has been saved','message');
$this->redirect(array('action'=>'index'));
...
}

Layout:
<div id="content">      
 <?php

 $session->flash();
                        
 echo $content_for_layout;
?>      
</div>  

Element;

<div id="flashMessage" class="message"> 
        <?php
           echo $message;
        ?>      
</div>

No message is shown on the Projects index page after executing the
edit action of the controller.
But when I do a die($message) inside the element, the message is displayed.

What am I doing wrong here?

Thanks,
Johannes

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