Welcome Guest, Not a member yet? Register   Sign In
call to undefined function
#2

[eluser]weboap[/eluser]
CI is telling you the view didn't receive the query var , $rows is not set
probably need to do something in your controller like

Code:
$data->rows = $this->mymodel->myfunction(); // pull data from db

$this->load->view('myview', $data);


can you post the relevant part of your controller and model,
and also personally i will keep that test in the model, then return either the $rows or false to the controller then send it to the view in the view instead of testing on
Code:
count()
i will test if false mean no data.
hope it help


NOTE: can you use the tag --- code --- when you post code to the forum. thanks


Messages In This Thread
call to undefined function - by El Forum - 05-15-2012, 09:20 PM
call to undefined function - by El Forum - 05-15-2012, 09:34 PM
call to undefined function - by El Forum - 05-16-2012, 12:34 AM
call to undefined function - by El Forum - 05-16-2012, 12:49 AM
call to undefined function - by El Forum - 05-16-2012, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB