Using CodeIgniter’s Model - difference local server and live server |
On my local test environment I can use
PHP Code: $dossier_first = model('EDossier_dossierModel')->where('ID',$ID)->first(); On my live server this is not longer working - following code is working PHP Code: $builder = $db->table('edossier_dossier'); There is one model where the direct model function is working PHP Code: $vraag = model('Vragen_app_vragenModel'); I don't see a difference in the model code - see the models below. PHP Code: <?php //--------------------------------------------------------- PHP Code: <?php
What are the exact model file names?
Are these names exactly the same as the classname?
[quote="kenjis" pid="411381" dateline="1690622357"]
What are the exact model file names? Are these names exactly the same as the classname? They are Code: <?php Code: <?php
My point is that the class name in the source code and the file name must match exactly.
If they differ by a single letter, it won't work on the Linux server. You did typo in the namespace: namespace app\Models; ↓ namespace App\Models; |
Welcome Guest, Not a member yet? Register Sign In |