• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pagination in categories

#1
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.