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.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
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.
(04-12-2020, 08:11 PM)George Rangel Wrote: Thanks for help. That’s cool. Care to share your solution?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
PHP Code: //in ShowPage class PHP Code: <?php them, in controller: PHP Code: <?php |
Welcome Guest, Not a member yet? Register Sign In |