Welcome Guest, Not a member yet? Register   Sign In
Can I send my attributes to the model __construct
#1

[eluser]fuksito[/eluser]
Can I get several instanses of one model class, how it is possible to pass different data to it`s constructor.
#2

[eluser]Colin Williams[/eluser]
Load the model:

Code:
$this->load->model('blog_model');

Then create new instances as you normally would with PHP:

Code:
$blog = new Blog_model($param, $param2);




Theme © iAndrew 2016 - Forum software by © MyBB