Removed Model and Controller but erroring - 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: Removed Model and Controller but erroring (/showthread.php?tid=73160) |
Removed Model and Controller but erroring - majortom84 - 03-25-2019 Hello, I removed both the model and the controller to clean up my files. Now I get "Message: Unable to locate the model you have specified: MyModle_name" . Full Error: An uncaught Exception was encountered Type: RuntimeException Message: Unable to locate the model you have specified: MyModle_name Filename: /var/www/html/myfolder/system/core/Loader.php Line Number: 347 Backtrace: File: /var/www/html/myfolder/application/controllers/Test.php Line: 23 Function: __construct File: /var/www/html/myfolder/index.php Line: 315 Function: require_once What could be causing this? RE: Removed Model and Controller but erroring - php_rocs - 03-25-2019 @majortom84, You probably removed them without realizing that you need them. What url/page is causing this problem? Also, CI uses MVC design pattern. If you get rid of the Model and View for a specific page and then call it you will definitely get errors. RE: Removed Model and Controller but erroring - majortom84 - 03-25-2019 (03-25-2019, 09:05 AM)php_rocs Wrote: @majortom84, Thank you! You made me realize that I might have set it globally in the autoload and sure enough I did. RE: Removed Model and Controller but erroring - php_rocs - 03-25-2019 @majortom84, Glad I could help. |