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, 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 -~----------~----~----~----~------~----~------~--~---
