language file inside a folder - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: language file inside a folder (/showthread.php?tid=76072) |
language file inside a folder - George Rangel - 04-12-2020 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. RE: language file inside a folder - includebeer - 04-12-2020 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. RE: language file inside a folder - George Rangel - 04-12-2020 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. RE: language file inside a folder - includebeer - 04-13-2020 (04-12-2020, 08:11 PM)George Rangel Wrote: Thanks for help. That’s cool. Care to share your solution? RE: language file inside a folder - George Rangel - 04-13-2020 PHP Code: //in ShowPage class PHP Code: <?php them, in controller: PHP Code: <?php |