__()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 wrote:
>
> Morning all,
>
> I have a problem with the fo
Sorry. Please ignore this message. Searched for ages for the answer
& only found it after posting this message... typical.
I have just found that the _() function prints the translation by
default. By adding the 2nd parameter of true then the output is
returned instead.
T
On Apr 7, 12:41 pm,
Hi,
Toby wrote:
> I have a problem with the following line in my code...
>
> $this->Session->setFlash(__('Hidden value changed'));
try this:
$this->Session->setFlash(__('Hidden value changed', true));
http://api.cakephp.org/file/basics.php#function-__
Regards
Guenther
--~--~-~--~
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 th