$this->Session->setFlash('A message.', 'default', array('class' =>
'warning'), 'reset_password');
...and this in a view:
echo $this->Session->flash('reset_password');
...I ought to get this:
<div id="flashMessage" class="warning">A message.</div>
...but I am actually getting this:
<div id="reset_passwordMessage" class="warning">A message.</div>
In other words, instead of reading the message in the session key
'reset_password' it is applying the key to the id of the div. This
makes applying CSS a bit tricky.
I can see the Session['Message']['reset_password'] key in the debug
toolbar, so it is being set and it is not being cleared after flash
has rendered it (like a normal setFlash message would be).
Am I doing something wrong?
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment