![]() |
I cannot do it pagination in a view - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: I cannot do it pagination in a view (/showthread.php?tid=8057) |
I cannot do it pagination in a view - El Forum - 05-03-2008 [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. I cannot do it pagination in a view - El Forum - 05-03-2008 [eluser]wiredesignz[/eluser] $data['links'] = $this->pagination->create_links(); $this->load->view('some_view', $data); <?php echo $links; ?> I cannot do it pagination in a view - El Forum - 05-03-2008 [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" |