Однако библиотека нумерации страниц codeigniter продолжает генерировать ссылки в порядке возрастания
р>
Код: Выделить всё
public function example1() {
$config = array();
$config["base_url"] = base_url() . "welcome/example1";
$config["total_rows"] = $this->Countries->record_count();
$config["per_page"] = 5;
$config["uri_segment"] = 3;
$this->pagination->initialize($config);
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
$data["results"] = $this->Countries->
fetch_countries($config["per_page"], $page);
$data["links"] = $this->pagination->create_links();
$this->load->view("example1", $data);
}
Другой пример:
1 2 3 4 5 > Последний »
Как бы мне перевернуть этот список, чтобы он выглядел примерно так:
5 4 3 2 1 > Последний »
Подробнее здесь: https://stackoverflow.com/questions/470 ... erse-order
Мобильная версия