You can do something like this:
if ($this->Session->check('Message.flash')):
$message = this->Session->read('Message.flash')
$this->Session->delete('Message.flash');
endif;
...and then process $message as you like. A bit long winded, but...
Jeremy Burns
Class Outfit
[email protected]
http://www.classoutfit.com
On 15 Jun 2011, at 00:47, Ryan Schmidt wrote:
> How about
>
> <?php
> $flash = $this->Session->flash();
> if (!empty($flash)) {
> echo '<div ...>' . $flash . '</div>';
> }
> ?>
>
> On Jun 14, 2011, at 17:00, Krissy Masters wrote:
>
>> Missed the part where i said "I know about the flash session class options
>> but I need something more than a class in this case." Its more than just a
>> class div I need.
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On Behalf
>> Of Ryan Schmidt
>> Sent: Tuesday, June 14, 2011 7:12 PM
>> To: [email protected]
>> Subject: Re: Flash Session Variable
>>
>>
>> On Jun 14, 2011, at 15:06, Krissy Masters wrote:
>>
>>> I know about the standard <?php echo $this->Session->flash(); ?>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php