Welcome Guest, Not a member yet? Register   Sign In
Removed Model and Controller but erroring
#1

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?
Reply
#2

@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.
Reply
#3

(03-25-2019, 09:05 AM)php_rocs Wrote: @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.

Thank you! You made me realize that I might have set it globally in the autoload and sure enough I did.
Reply
#4

@majortom84,

Glad I could help.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB