Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function xyz(){
- $this->load->library('pagination');
- $config['base_url'] = "http://localhost/rainbow/admin/postList/xyz";
- $config['per_page'] = 10;
- $config['total_rows'] = $this->post_model->list_count();
- $config['uri_segment'] = 3;
- $config['page_query_string'] = TRUE;
- $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
- $this->pagination->initialize($config);
- $data['lists']=$this->post_model->listing($config["per_page"], $page);
- $this->load->view('includes/header');
- $this->load->view('listing/listing_post',$data);
- $this->load->view('includes/footer');
- function search_listing($limit, $start)
- {
- if(isset($this->input->get('search')))
- {
- $this->db->like('post_name',$this->input->get('search'))
- }
- $this->db->limit($limit, $start);
- $query=$this->db->get('blog');
- return $query->result();
- }
- function xyz()
- {
- $this->load->library('pagination');
- $config['base_url'] = "http://localhost/rainbow/admin/postList/xyz";
- $config['per_page'] = 10;
- $config['total_rows'] = $this->post_model->list_count();
- $config['uri_segment'] = 4;
- $config['page_query_string'] = TRUE;
- $page = ($this->uri->segment(4)) ? $this->uri->segment(4) : 0;
- $this->pagination->initialize($config);
- $data['lists']=$this->post_model->listing($config["per_page"], $page);
- $this->load->view('includes/header');
- $this->load->view('listing/listing_post',$data);
- $this->load->view('includes/footer');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement