Coda Clips

Codeigniter Paging

// Set pagination
		$config['base_url'] = base_url().'/faq/index/';
		$config['total_rows'] = $this->db->count_all('faq');
		$config['first_faq'] = 'First';
		$config['last_faq'] = 'Last';
		$config['full_tag_open'] = '<p class="footer">';
		$config['full_close_open'] = '</p>';
		$config['uri_segment'] = 3;
		$config['per_page'] = 5;
		$this->pagination->initialize($config);

Added to by Andrew

Install Clip


Sponsored Links: