Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function index($pag_num = false, $linguagem = 'pt-br', $id = false, $url_id = false)
- {
- $this->load->library('pagination');
- $config['base_url'] = base_url() . 'noticias/noticias/' . $this->linguagem . '/' . $id . '/' . $url_id;
- $config['total_rows'] = $this->db->count_all($this->table);
- $config['per_page'] = 15;
- $config['first_link'] = '‹ Primeiro';
- $config['last_link'] = 'Último ›';
- $config['uri_segment'] = 3;
- $this->linguagem = $this->getLanguageByAbrev($linguagem);
- $data['title'] = 'Notícias';
- $data['qNoticia'] = $this->getNoticiaByIds($id, $url_id);
- $data['qNoticias'] = $this->getAllNoticias($config['per_page'], $this->uri->segment(3));
- $this->pagination->initialize($config);
- $this->load->view("noticias/noticias_view", $data);
- }
Add Comment
Please, Sign In to add comment