The point is, you can use __('User %s was not found.', $username) and the %s will be replaced with the value in $username, or with __('User %s from %s was not found.', $username, $country) you'll get, for example, "User John from Jamaica was not found".
El viernes, 4 de mayo de 2012 19:38:27 UTC+2, Daniel escribió:
I'm using Cake 2.0, so this is OK, right?--
$this->Session->setFlash(__('User was not found.'));
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment