Welcome Guest, Not a member yet? Register   Sign In
When loading a Model is __construct called?
#1

[eluser]Moon 111[/eluser]
When a Model is loaded is __construct automatically called? If so, how can I add parameters?
#2

[eluser]drewbee[/eluser]
When Loading a model, the construction() method is called as would a normal object. However, I do not believe their is a way to pass data to it. As the second parameter of this->load->model() only accepts a different name to access the model by then by the model name.




Theme © iAndrew 2016 - Forum software by © MyBB