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
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