Welcome Guest, Not a member yet? Register   Sign In
pagination problem
#1

[eluser]sniperscope[/eluser]
Hello
Recently i have a problem with pagination. I am following Jeffrey Way's tutorials at http://net.tutsplus.com/tutorials/php/co...agination/
However, i have problem with pagination on page images.
Pagination works fine at page but some images disappear(menu navigation images) at page two or so.

The prist page of pagination is
example.com/index.php/sample so there is no problem all pagination links are fine. Unfortunately
example.com/index.php/sample/index/10 works okay but images are gone.

So, my controller is as follow;

Code:
$this->load->library('pagination');
$config['base_url'] = "http://example.com/index.php/sample";
$config['total_rows'] = $this->db->get('mytable')->num_rows();
$config['per_page'] = 10;
$config['num_links'] = 20;

$this->pagination->initialize($config);
$this->load->model('my_model');

$p = (!$this->uri->segment(2)) ? 0 : $this->uri->segment(2);
$data['records'] = $this->my_model->testimonals($config['per_page'], $p);
$this->load->view('sample/index', $data);

In there how can i fix this and how can i get rid of index at sample/index/10

Regards
#2

[eluser]sniperscope[/eluser]
Is there no one else to help?
#3

[eluser]sniperscope[/eluser]
Never mind, i solved it.
#4

[eluser]pickupman[/eluser]
Glad you were able to solve the issue yourself. Keep in mind you were posting this on Christmas, so I would imagine there wouldn't be many around to help.
#5

[eluser]sniperscope[/eluser]
[quote author="pickupman" date="1356534524"]Glad you were able to solve the issue yourself. Keep in mind you were posting this on Christmas, so I would imagine there wouldn't be many around to help.[/quote]

Thanks for reply.
The Xmas was completely out of my mind. I was wondering why nobody was not answering.... Smile
#6

[eluser]Unknown[/eluser]
Yeah pagination is still issue to converting as the guild clear all thing but still need best support from experts
#7

[eluser]Unknown[/eluser]
[quote author="sniperscope" date="1356499930"]Never mind, i solved it.[/quote]

It would come in handy if you shared your solution though!




Theme © iAndrew 2016 - Forum software by © MyBB