Pagination does not show pages links. |
[eluser]Unknown[/eluser]
Hello, Im having problems with pagination to work right. The adressing works fine but cant force the pagination links to display Here is the controller Code: public function listing(){ Here is model Code: public function getByOs($os, $num, $offset){ and here is the view Code: if(!empty($row)){ Im rly newbie to codeigniter yet, guess its some totally dumb thing. Thx for help in advance.
[eluser]Unknown[/eluser]
Hi there, copy and paste this into your controller Code: //You need to load the libraries before you can use them And after that delete the line in your view that says Code: echo $this->pagination->create_links(); Code: echo $links; You see, you need to load the libraries in your controller, so you can use them, otherwise all your $config data will be going nowhere, this will probably give you errors too.. Try this, it should fix it You should probably check the documentation about the pagination library, it will help you a lot Check it out here
[eluser]agdelacruz02[/eluser]
Hi, I'm also having problems with my pagination, there was an error when I click on the "[2]" or ">" links the error says Quote:The requested URL /2 was not found on this server.. Can you help me in this pls. tnx. |
Welcome Guest, Not a member yet? Register Sign In |