Using CodeIgniter’s Model - difference local server and live server - 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: Using CodeIgniter’s Model - difference local server and live server (/showthread.php?tid=88148) |
Using CodeIgniter’s Model - difference local server and live server - Project Linde37 - 07-29-2023 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 RE: Using CodeIgniter’s Model - difference local server and live server - kenjis - 07-29-2023 What are the exact model file names? Are these names exactly the same as the classname? RE: Using CodeIgniter’s Model - difference local server and live server - Project Linde37 - 08-03-2023 [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 RE: Using CodeIgniter’s Model - difference local server and live server - kenjis - 08-03-2023 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; |