Removed Model and Controller but erroring |
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?
@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.
(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. |
Welcome Guest, Not a member yet? Register Sign In |