__()function is using Localization & Internationalization if u want the
__()function $this->Session->setFlash(__('Hidden value
changed',true));otherwise
$this->Session->setFlash('Hidden value changed');On Tue, Apr 7, 2009 at 5:11
PM, Toby <[email protected]> wrote:
>
> Morning all,
>
> I have a problem with the following line in my code...
>
> $this->Session->setFlash(__('Hidden value changed'));
>
> It is printing the translated 'Hidden value changed' to the screen
> rather than setting the flash message. If I remove the __() function
> it works fine.
>
> I can do this for this site as it is not an international site,
> however it irks me when things don't work as they should so could
> anyone shed some light on this problem?
>
> I haven't written this code but copied it from a blog post I found
> online, so it's not even something I have got wrong.
>
> Any help appreciated.
>
> Toby
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---