model syntax |
hi
the basic syntax for model is Code: $this->load->model('Model_name'); but, i found some programmer use like this : Code: $this->load->model('m_model1', 'm_model2'); is that possible? sorry. i'm newbie.
Yes, that's possible. If you read through the docs you'll see it. The second parameter lets you rename how the model is referenced.
|
Welcome Guest, Not a member yet? Register Sign In |