Welcome Guest, Not a member yet? Register   Sign In
Feature Suggestions? (Variables in Model's)
#3

[eluser]sv3tli0[/eluser]
You can instead make one function init($params){}
Which will load your vars to the model Smile

Code:
$construct_vars = array("username", "password");

$this->load->model('user_model', 'user');
$this->user->init($construct_vars);

Don't forget that most of the models are extending CI_Model and setting constructive variables may be a problem Smile


Messages In This Thread
Feature Suggestions? (Variables in Model's) - by El Forum - 08-09-2013, 11:00 AM
Feature Suggestions? (Variables in Model's) - by El Forum - 08-09-2013, 11:01 AM
Feature Suggestions? (Variables in Model's) - by El Forum - 08-09-2013, 01:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB