Colleagues using codeigniter 1.7.3, can I load a model from the code of another model? I read a lot of theoretical and practical messages, but no one gave a definitive answer.
I have a model that has a function in which I would like to perform an operation on another model. The code is as follows:
1: $this->load->model('decision_model'); 2: $this->decision_model->hello_decision();
line 1 works. line 2 does not work as follows:
PHP error was an error
Severity Level: Notification
Message: Undefined property: Account_model :: $ decision_model
File Name: models / account_model.php
I tried to create simple dumb models, changed function names, giving the model an alias at boot, etc .... no luck
So, theory aside, is this doable?
early.
codeigniter model
djeetee
source share