「グリッド」ビューまたはリスト「ビュー」のいずれかで製品情報を表示する必要があります。
最初はのようなURLを渡していhttp://localhost/thebestbookfinder.com/viewallbooks/books/pgn/1/grid
ますが、ページネーションリンクをクリックすると、URLがに再起動されhttp://localhost/thebestbookfinder.com/viewallbooks/books/pgn/1
ます。したがって、このため、ビュー形式のデータを読み込めません。このエラーを修正するにはどうすればよいですか?
この疑問は私の友人の問題の一部です主な問題のリンクを参照してください
MyContoller.php
function books()
{
$config = array();
$config['base_url'] = base_url().'viewallbooks/books/pgn/';
$config["total_rows"] = $this->Booksmodel->record_count_for_secondtopBooks('3');
$config['uri_segment'] = 4;
$config['per_page'] = 3;
$config['full_tag_open'] = '<div id="pagination">';
$config['full_tag_close'] = '</div>';
$this->pagination->initialize($config);
$page = ($this->uri->segment(4)) ? $this->uri->segment(4) : 0;
$data["query"] = $this->Subjectmodel->get_subjects();
$data["query1"]= $this->Editionmodel->get_edition();
$data["query2"]=$this->Booksmodel->get_all_book_list_atHomeTop('3',$config["per_page"], $page);
$data["links"] = $this->pagination->create_links();
//---------For getting view type and passing to the view to show data accordingly-----
$viewType = ($this->uri->segment(5)) ? $this->uri->segment(5) : 'list';
$data["vt"]=$viewType;
// ----Ends here For getting view type and passing to the view to show data accordingly-----
$this->load->view('commonfiles/booksview',$data);
}