Where do I place a set_locale in Kohana PHP framework?

Posted by janoChen on Stack Overflow See other posts from Stack Overflow or by janoChen
Published on 2010-05-13T18:45:42Z Indexed on 2010/05/13 19:34 UTC
Read the original article Hit count: 204

Filed under:

In the following tutorial: http://pinoytech.org/blog/post/Kohana-2.4-I18N-internationalization-and-localization-Library the author says:

I'd put it in a Base Controller so that all Controllers inherit it.

this is the code:

I18n::set_locale('tl_PH');

I tried placing it in all the controller and places I could but is not working.

Which is the exact place where I should place it?

© Stack Overflow or respective owner

Related posts about kohana