Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Orm
Module Model Not Found
heitorfig
February 2013
Hi, I'm trying to load a related Model from the modules folder, but the answer is a error.
Fuel\Core\FuelException [ Error ]: Related model not found by Has_Many relation "categorias": \Categoria\Model_Categoria
The related model is in the modules folder. /modules/categoria/classes/model/categoria.php
Harro
February 2013
Accepted Answer
It's not really best practice to create such a dependency between modules (or app and a module).
But if you want to do that: is the module loaded? If not, the autoloader doesn't know where to find the namespace.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
February 2013