Я хочу реализовать нумерацию страниц, но у меня возникла проблема. Запрос на ограничение количества страниц работает неправильно.
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();
Подробнее здесь: https://stackoverflow.com/questions/496 ... lder-metho
Мобильная версия