Pagination page not found |
[eluser]junaids[/eluser]
Hi. I have a problem with my pagination implementation. heres the model Code: <? Code: function home() my url is http://localhost/codeigniter/index.php/events/home when i click on next page link i get this error Code: 404 Page Not Found http://localhost/codeigniter/index.php/e...per_page=5
[eluser]Dam1an[/eluser]
[quote author="junaids" date="1245463997"]any body home![/quote] Wow, somebody is rather impatient, and after just 45 minutes!
[eluser]bretticus[/eluser]
I don't think your 404 issue has anything to do with your pagination code.
[eluser]junaids[/eluser]
@Dam1an I am used to getting fast replys, specially from you. if theres no problem with my pagination code then what is the problem
[eluser]Dam1an[/eluser]
a) You can't always expect a quick response, there are always quiet periods due to the time lol b) I didn;t initially reply cause pagination isn't my forte (I very rarely use it) c) It looks by the generated URL that it's trying to use a combination of query strings and segment based URLs, do you have query strings enabled in config?
[eluser]n0xie[/eluser]
The clue is probably here Code: http://localhost/codeigniter/index.php/events/home&per_page=5 and here Code: $config['base_url'] = 'http://localhost/codeigniter/index.php/events/home';
[eluser]junaids[/eluser]
got it. the problem was with this line. Code: $config['base_url'] = 'http://localhost/codeigniter/index.php/events/home/'; a backslash at the end was needed
[eluser]n0xie[/eluser]
Good Job Sherlock! (sorry I got tired of pointing to the obvious :-P ) |
Welcome Guest, Not a member yet? Register Sign In |