-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to load a model inside modules/../model #355
Comments
CodeIgniter cannot load models not in |
should i copie the application/tests folder in each folder inside /modules ?? can that work |
You have to dig into how do you load the model in the I don't remember how CodeIgniter-HMVC does it. |
do you have any links or resources i could use ?? because i have searched alot with no success |
Read CodeIgniter-HMVC code to find out how it loads a model in the modules folder. |
i have this method line 197 https://github.com/xttrust/codeigniter-modular-extensions-hmvc-fixed/blob/master/third_party/MX/Loader.php where exactly can i implement it in ci-phpunit-test |
How about setting $this->resetInstance();
CI::$APP->router->module = 'foo';
$this->CI->load->model('foo_model'); |
Error: Call to undefined method MY_Loader::get_details() |
@ayokay123 What's your environment?
|
os: ubuntu (im using docker for the project) |
It seems there is no And also not in original HMVC's |
@ayokay123 |
thank you very much, it works now |
i have another question if you can help .Can i ignore a database when i do migration in TestCase? |
@ayokay123 File another issue for another question. |
hey, when i try to load public
i can only find the models in application/models i can't find models in application/modules/.../models
The text was updated successfully, but these errors were encountered: