Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination doesn't work #24

Open
Jeferex opened this issue Apr 29, 2015 · 3 comments
Open

Pagination doesn't work #24

Jeferex opened this issue Apr 29, 2015 · 3 comments

Comments

@Jeferex
Copy link
Contributor

Jeferex commented Apr 29, 2015

The pagination doesn't work. In messages, I inserted 15 rows. When I go to page number 1, everithing is OK but page number 2 shows me messages with Id > 2 and it should show messages with id > 10.

Please check it out.

@ranacseruet
Copy link
Owner

Seems like its the setting for paginationlib.php inside 'application/libraries/app' directory. Please check the settings for "$config['uri_segment']" to the proper uri segment number based on the uri structure for your application. Let me know if it still doesn't work.

@Jeferex
Copy link
Contributor Author

Jeferex commented May 8, 2015

I haven't changed anything. The $config['uri_segment'] is 4 as in your code. Can you try adding 15 messages in message table to check? I think the cause is $start_record = 0 and get_by_range method in My_DModel. When I go to page 2, $start_record = 2 and findBy would start at record 2 and it should start at record 11.

@Jeferex
Copy link
Contributor Author

Jeferex commented May 15, 2015

Please check Pull Request #26

I fixed the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants