die(debug($this->session->read('Message.auth')));
...just before you set it?
If that is an array, then that is what will go into the flash message.
Try this instead:
$session->flash('auth');
Jeremy Burns
jeremyburns@me.com
On 3 Jun 2010, at 10:07, Zahidur Rahman wrote:
> I am using setting following flash msg from my user controller
>
> $this->Session->setFlash($this->Session->read('Message.auth'));
>
> In my view file i am using
>
> $session->flash();
>
> On 6/3/10, Jeremy Burns <jeremyburns@me.com> wrote:
>> Where are you setting the message with $session->setFlash();?
>>
>> Jeremy Burns
>> jeremyburns@me.com
>>
>>
>> On 3 Jun 2010, at 09:23, Zahidur Rahman wrote:
>>
>>> Hi i am still getting Array as output
>>>
>>> On 6/3/10, Jeremy Burns <jeremyburns@me.com> wrote:
>>>> You din't need to do that. Just do $session->flash(); - if there is a
>>>> message set, it will display, else it won't.
>>>>
>>>> Jeremy Burns
>>>> jeremyburns@me.com
>>>>
>>>>
>>>> On 3 Jun 2010, at 07:40, Zahidur Rahman wrote:
>>>>
>>>>> Hi experts
>>>>> I am facing a problem for showing flash message in my view file.
>>>>> If any message is not found then in my view file i found array()
>>>>> I am using the following code in my view file :
>>>>>
>>>>> if ($session->check('Message.flash')) {
>>>>> $session->flash();
>>>>> }
>>>>>
>>>>>
>>>>> Output : array()
>>>>> If no message set for this method
>>>>>
>>>>> Would you help pls
>>>>> Thanks
>>>>> Zahidur Rahman
>>>>>
>>>>> 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
>>>>
>>>> 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
>>>>
>>>
>>> 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
>>
>> 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
>>
>
> 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
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