language file inside a folder |
Hey people!
I can use: PHP Code: lang('Errors.errorEmailMissing'); But, image that Errors.php is inside "app/Language/en/mysite/Errors.php". Now, how can I call the language? PHP Code: lang('mysite.Errors.errorEmailMissing'); //doesn't work, for example I need this because I want to use the same viewers files paths.
I don’t think that’s possible. Why do you want a “mysite” subdirectory? You are in app/Language, this is already your site’s language folder.
Thanks for help.
My site was an exemple. Can be admin or user folder too. I already solved the problem seeing How CI do the things inside lang(). Thanks.
PHP Code: //in ShowPage class PHP Code: <?php them, in controller: PHP Code: <?php
Not sure when this was introduced but in CodeIgniter 4.6.0 the following works out of the box:
App/Languages Code: ├───en PHP Code: lang('/Entities/User.field') |
Welcome Guest, Not a member yet? Register Sign In |