CodeIgniter Pagination problem |
[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!
|
Welcome Guest, Not a member yet? Register Sign In |