CodeIgniter 3.1.6: Unable to locate the model you have specified - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: CodeIgniter 3.1.6: Unable to locate the model you have specified (/showthread.php?tid=69284) |
CodeIgniter 3.1.6: Unable to locate the model you have specified - DorkSQLi - 10-31-2017 Sorry for bad English. I have 1 model file from the composer, previously I used CI version 3.0.x with the following configuration it's working. config.php PHP Code: $config['composer_autoload'] = FCPATH . 'vendor/autoload.php'; autoload.php PHP Code: $autoload['model'] = array('Crud'); My Model location in `ROOTPROJECT/vendor/package/my-package/models/Crud.php' PHP Code: <?php From the composer side has also been made autoload Crud.php Code: { When I update the CI system to version 3.1.6 by following all previous changes, it is not working. Code: An uncaught Exception was encountered I am trying to change the file system / core / Loader.php line 324, the result nothing error. PHP Code: if ( ! class_exists($model, FALSE)) { ... } CodeIgniter 3.1.6 system/core/Loader.php line 323-350 PHP Code: $model = ucfirst($model); CodeIgniter 3.0.1 system/core/Loader.php line 293-320 PHP Code: $model = ucfirst(strtolower($model)); how to avoid the error without having to change the file system CodeIgniter? RE: CodeIgniter 3.1.6: Unable to locate the model you have specified - Narf - 11-01-2017 Models are meant for application-specific, business logic. That's simply not something you put into a composer package. RE: CodeIgniter 3.1.6: Unable to locate the model you have specified - DorkSQLi - 11-01-2017 (11-01-2017, 04:24 AM)Narf Wrote: Models are meant for application-specific, business logic. That's simply not something you put into a composer package. Thanks for informing Me. |