Welcome Guest, Not a member yet? Register   Sign In
Need to understand the function calling.
#1

[eluser]ajay009ajay[/eluser]
hi,

Plz explain about this following code..

$conditions= array('users.role_id' => '1','users.activation_key'=>$activation_key);

$query= $this->user_model->getUsers($conditions);

what about second line of function calling.I m not getting the code with "user_model" and function "getUser($conditions)".
#2

[eluser]umefarooq[/eluser]
it is just checking user role either admin or normal user and also check user activation key user active or not.
#3

[eluser]ajay009ajay[/eluser]
Is this predefined function in database like , i used .

$query = $this->db->query("SELECT * FROM users where activation_key='".$activation_key."' AND role_id='".$role_id."'");

for this function i load the database.
$this->load->database();

So following function...
$query= $this->user_model->getUsers($conditions);
is also from database system or defined by user.




Theme © iAndrew 2016 - Forum software by © MyBB