1
codeigniter内でページネーションライブラリを使用する場合は、this tutorialです。私はチュートリアルを正しく実装しており、結果をmysqlで降順に表示しています。Codeigniterページネーションリンクは降順/逆順でリンクされますか?
しかし、CodeIgniterのページネーションライブラリは、リンクがリンク1から始まる5によって上がるとTOTAL_ROWSで停止し、このコードで昇順
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);
}
にあるリンクを生成し続けます。私はtotal_rowsから5ずつカウントダウンして0で停止したいのですが、どうすればいいですか?
もう一つの例:
1 2 3 4 5>最後»
どのように私はこのような何か見て、このリストを逆になります
5 4 3 2 1>最後»を