I just started using CakePHP, and am learning how to use Bake. Why does the CRUD is generates have __ when using $this->Session->setFlash(__('The post could not be saved. Please, try again.', true));
and what is the true there for?
views:
43answers:
2
+1
A:
I believe they're used for localization of a given string. WordPress does something similar.
Collin Allen
2010-08-22 22:59:11
+2
A:
It's the function used to translate the string passed as argument. Other CMSes / frameworks (also in different programming languages) use a function with similar name.
kiamlaluno
2010-08-22 23:02:37