,Message: Call to a member function get_paged_list() on null Filename: controllers/siswa.php this my full code http://pastebin.com/ZBHkBS8i
Problem solved,thanks to baci and bora
,Message: Call to a member function get_paged_list() on null Filename: controllers/siswa.php this my full code http://pastebin.com/ZBHkBS8i
Problem solved,thanks to baci and bora
you shouldn't call the model like this
$siswas = $this->siswa_model->
get_paged_list($this->limit,$offset,$order_column,$order_type) ->result();
but like this
$this->load->model("siswa_model");
$result = $this->siswa_model->
get_paged_list($this->limit,$offset,$order_column,$order_type)
and in the model you should query the database end return the result, something like this
public function get_paged_list($limit,$order_column,$order_type)
{
$q_str = "select * from table ....etc ";
$q = $this->db->query($q_str);
return $q->result();
}
hope that helps