On Dec 21, 2010, at 18:51, sherzo wrote:

> I have the following lines in my controller:
> $this->Session->setFlash('blabla');
> $this->redirect(array('action'=>'unsuccessful'));
> exit();
> 
> and this part in my view:
> if ($session->check('Message.flash')) {
>     echo $session->flash();
> }
> 
> but the result will be :
> <div id="flashMessage" class="message">blabla</div>1
> 
> I have that 1 extra in my view!!!!!!!


My layout has:

echo $this->Session->flash();

Not sure if that makes a difference (vs. your "echo $session->flash();").

If not, then I suspect you have another echo somewhere else in your code that's 
printing that 1.



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