Я хочу сделать разбиение на страницы, чем я нахожу эту проблему. запрос ограничения на разбиение на страницы не работает должным образом.
if($this->input->get('page'))
{
$start = abs(($this->input->get('page', TRUE)-1)*$config['per_page']);
}else{
$start = 0;
}
$condition = array();
if (preg_match('/WMV/', $whatFind)) {
$condition = array('registerId' => $whatFind);
}
$results = $this->db->
group_by('registerId')->
//($start, $config['per_page'])->
order_by('id', 'desc')->
get_where('tbl_applications', $condition)->
result();