Welcome Guest, Not a member yet? Register   Sign In
I cannot do it pagination in a view
#1

[eluser]jozeunico[/eluser]
Hello, i cannot show the links on my view.
I set my $config var in a controller/function,
if i do $this->pagination->create_link() in the function, it works,but if i want to show the links in a view, it doesn't works

how can i show the links in the view, instead the function?

Sorry about my english, i hope you understand me.
#2

[eluser]wiredesignz[/eluser]
$data['links'] = $this->pagination->create_links();

$this->load->view('some_view', $data);

<?php echo $links; ?>
#3

[eluser]jozeunico[/eluser]
[quote author="wiredesignz" date="1209881929"]$data['links'] = $this->pagination->create_links();

$this->load->view('some_view', $data);

<?php echo $links; ?>[/quote]


That's was good, thanks. But, well, while I'm waiting for help i did it this:
1.- in my controller/function extract the $_POST (for the search), and send to the view

and then set my $config, in the view, and it works, but the link "1" don't send value to the URL like the link "2" for example that sends "1" and use it to limit my querie
the problem it's that if the link "1" don't send value, my querie has an error
because "limit ,2"




Theme © iAndrew 2016 - Forum software by © MyBB