Pagination once more |
[eluser]r@mtbb_[/eluser]
Hi, I'm sorry to bother you with a very discussed topic but, I still can't make pagination to work on my website. Here's the code: Code: //controller Code: //view_file The links don't have correct paths. They change along with the $config['per_page']. All the necessary libraryes and helpers are loaded. What could be the problem? Thanks!
[eluser]Craig A Rodway[/eluser]
What difference does it make if you change the base_url variable to site_url('see/index'); ?
[eluser]Mark van der Walle[/eluser]
Indeed, CI will create the following urls: http://localhost/website/index.php/see/0 http://localhost/website/index.php/see/4 http://localhost/website/index.php/see/8 When you click on that it will try to call a controller see with the function 0,4,8 etc. These dont exist (and could not for that matter). Either use some URI routing if you do not want to show the index or add the index to the baseurl
[eluser]r@mtbb_[/eluser]
Thanks for the help! If I change the base_url variable with site_url(’see/index’), I won't get a 404 but the page won't change neither. How can I create URI routing to solve this? UPDATE: Nevermind. It works now with site_url(’see/index’) and the URI segment is 3. Thank you! |
Welcome Guest, Not a member yet? Register Sign In |