[eluser]Unknown[/eluser]
im making a cms. but i have a problem with my structure.
for example if user want to see page 2 of category 5, he must goto this url:
Code:
http://www.example.com/category/5/page/2
how can i write a method for it in my controller "category.php"?
i use this structure for my homepage
Code:
http://www.example.com/home/page/2
so, my controller code is:
Code:
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Home extends CI_Controller {
public function index(){...}
public function page($pageid){...}
}
?>
but in category page i have that problem.