Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14346

Using pagination

$
0
0
I'm starting my first project in CodeIgniter and are a little confused by the documentation for using pagination, there is an example on the page:

https://codeigniter.com/user_guide/libra...on#example

It gives an example and says it's to use in a controller, I have pasted it in to my contoller but it's not doing anything, also the last line in their example script is:

This can't be right as why would you echo something in the controller? I would understand using echo in a view but definitely not in the controller, could somebody please advise me?

echo $this->pagination->create_links();

Tj

Viewing all articles
Browse latest Browse all 14346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>