Cannot load Language Files from module |
Hi
I followed the instructions https://bcit-ci.github.io/CodeIgniter4/g...dules.html but cannot load language . Can you help me Thanks all
You need to provide details of what you tried, how your code is setup, and what happened for us to be able to help.
In the model, the error messages of the validation, give an error if you try to use the lang helper.
(03-08-2018, 07:39 AM)dannywebdev Wrote: In the model, the error messages of the validation, give an error if you try to use the lang helper. I think that you are trying something like that: PHP Code: <?php namespace App\Models; Then: Quote:ErrorException #64 PHP does not allow this. You will need to call the lang() inside the constructor: PHP Code: <?php namespace App\Models; |
Welcome Guest, Not a member yet? Register Sign In |