Another pagination 404 Page not found issue |
[eluser]juggernautsei[/eluser]
Before you jump on me. I googled this issue and read everyone of the post on this site and none of them helped me to figure out what I did wrong. All the codes are setup different than mine so I had no close comparison to make that leap. So here goes: Controller code Code: public function index(){ Model Code: Code: class MY_Model extends CI_Model { View Code: Code: <?php The pagenation is at the bottom of my page but when I click them I get page not found. Not sure where to go from here.
[eluser]CroNiX[/eluser]
What do the pagination links look like and what SHOULD they look like? The problem most likely is you are using the index method of your class for pagination, but "index" isn't present in the url, which it normally isn't because it's a special case (default method).
[eluser]juggernautsei[/eluser]
Thanks for the reply. The link that is generated is http://mywebsite/sitefolder/index.php/manageaccounts/1
[eluser]juggernautsei[/eluser]
You were right the base url was the problem. I changed it from $config['base_url'] = current_url(); to $config['base_url'] = '../index'; I was missing the index method at the end of the URL. This also solved my issue on how to make it dynamic. |
Welcome Guest, Not a member yet? Register Sign In |