$config['use_page_numbers'] = TRUE is not working perfectly in codeigniter 2.1.0? |
[eluser]pbflash[/eluser]
You need to describe your problem in order for anyone to even try to help fix it.
[eluser]somenet[/eluser]
I mean there is no actual data is return while using $config['use_page_numbers'] while using pagination class in codeigniter 2.1.0.How to solve this problem.
[eluser]TWP Marketing[/eluser]
So, show us what you have tried and what output you did get. Your question is still unclear. Yes, we get that something doesn't work as you expect, but be more specific please. Show your code (use the [ code] tags please).
[eluser]somenet[/eluser]
Code: <?php Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[eluser]TWP Marketing[/eluser]
[quote author="somenet" date="1337560562"] Code: <?php well as actual data also.And my view file is like this [/quote] In your controller, you pass the limit and offset using the get() method. That will limit the data you get back from the query. Are you sure the correct limit and offset are passed? What is the full url used to call your page? Is segment 3 (the offset) correct?
[eluser]somenet[/eluser]
yes i passed the actual limit and offset.The url is like this http://localhost/CodeIgniter_2.1.0/books/index/ but this code is true while $config[’use_page_numbers’] = false is used,only when we use $config[’use_page_numbers’] = true then this time it not return actual data. |
Welcome Guest, Not a member yet? Register Sign In |