When I load my base_model normally, it's ok. But when I use autoload.php to load base_model, I get a problem:
The model name you are loading is the name of a resource that is already being used: base_model
Please help me solve this!:)
When I load my base_model normally, it's ok. But when I use autoload.php to load base_model, I get a problem:
The model name you are loading is the name of a resource that is already being used: base_model
Please help me solve this!:)
I know this is old post... If you put
parent::__construct
in any controller function (except constructor) you get this message.Once you
autoload
the model inautoload.php
, again you try to load the same file some or the another controller or model, this will show following error.to avoid that i will just recommend that do not load that model anywhere in the full application once you
autoload
that particular model.For the sake of completeness I want to refer to this blog post (in german) that suggests loading the models without a name.
instead of
It helped me because I didn't have an auto loader configured and the model wansn't loaded inside the controller (or its super classes).