Pagination on a subdomain - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Pagination on a subdomain (/showthread.php?tid=53194) |
Pagination on a subdomain - El Forum - 07-14-2012 [eluser]Shella[/eluser] Hi, I followed tutorial for pagination in an old post undo Nettuts (Day 7) and the tutorial run to me too. I tried to use the pagination in a project i'm doing then and here I got a surprise. Actually when I click on the number page to reach (let's say 2) the link I will call is: http://sub.domain.com/blog/20 and I return "Page not found"! I'm a bit shocked. Probably I misanderstood some step so... here the code. I hope somebody can help me to understand what's wrong. I tried to change different value on $this->uri->segment(2) with 1, 3... 4.. (just because seem "trendy" solve with that heh ) My doubt is when i declare $config['base_url'] but actually nidea. I got "page not found". I guess is senseless if the pagination library is loaded... Controller: Code: public function index() View Code: [...] Thanks everybody! |