![]() |
CodeIgniter Pagination problem - 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: CodeIgniter Pagination problem (/showthread.php?tid=51048) |
CodeIgniter Pagination problem - El Forum - 04-19-2012 [eluser]InterMedio[/eluser] Hi all! I want make pagination for ver 2.1, but I have problem. Below my code: Model: m_hello.php Code: class M_hello extends CI_Model { Code: class Hello extends CI_Controller { Code: <html> All helpers(url) and libraries(database, pagination) I have included to autoload. But when I go to http://ci/hello/2 (click on link in the pagination block), I get message '404 Page Not Found', which generated a CodeIgniter. I tried to change segment $this->uri->segment(2) to other values, but I received same as error. Also I inserted to .htaccess next code(for correct url's): RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] Anybody know, how solve this problem? Thanks! CodeIgniter Pagination problem - El Forum - 04-19-2012 [eluser]InterMedio[/eluser] I solved this problem. |