Welcome Guest, Not a member yet? Register   Sign In
model syntax
#1

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.
Reply
#2

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB