Welcome Guest, Not a member yet? Register   Sign In
problems with paging using Modular Extensions
#1

[eluser]Unknown[/eluser]
Hello,

First, I apologize for my english.

I'm having problems with pagination using modular extensions. I tested the example of the official CodeIgniter User Guide for pagination and works perfectly. However, using Modular Extensions, the same example, although changing the url parameter, does not change the status of active links. How to fix this problem?

The sample code official pagination is:

Code:
$this->load->library('pagination');
$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = 200;
$config['per_page'] = 20;
$this->pagination->initialize($config);
echo $this->pagination->create_links();

thank you in advance!
#2

[eluser]Sanjay Sarvaiya[/eluser]
Try this.
Code:
$this->load->library('pagination');

$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = 200;
$config['per_page'] = 20;
$config['uri_segment'] = 3;
$config['full_tag_open'] = '<p>';
$config['full_tag_close'] = '</p>';
$config['cur_tag_open'] = '<b>';
$config['cur_tag_close'] = '</b>';

$this->pagination->initialize($config);

echo $this->pagination->create_links();
Hope that helps.
#3

[eluser]Unknown[/eluser]
Thanks! Wink




Theme © iAndrew 2016 - Forum software by © MyBB