hear is my code
public function viewdeletedrecords()
{
if($this->session->userdata('applicant_firstname') == '')
{
redirect('papplicant/login') ;
}
$profile = $this->m_applicant->showdeletedrecods('','');
$total_rows = count($profile) ;
$config['base_url'] = base_url().'index.php/papplicant/viewdeletedrecords/' ;
$config['per_page'] = '10' ;
$config['full_tag_open'] = '<div>' ;
$config['full_tag_close'] = '</div>' ;
$config['first_link'] = 'First' ;
$config['last_link'] = 'Last' ;
$config['use_page_numbers'] = TRUE ;
$config['prev_link'] = '<' ;
$config['uri_segment'] = 3 ;
$config['num_links'] = 10 ;
$config['cur_tag_open'] = '<b>' ;
$config['cur_tag_close'] = '</b>' ;
$config['total_rows'] = $total_rows ;
$invoicepaginate = $this->m_applicant->showdeletedrecods( $config['per_page'], $this->uri->segment(3)) ;
$this->pagination->initialize($config);
$data4 = array(
'data' => $invoicepaginate
) ;
$this->load->view('applicant', $data4);
}
what is the use of $this->uri->segment(3)
in codeigniter
whan I enter $this->uri->segment(3);
it works as expected but when I enter $this->uri->segment(4);
it stops working
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…