Welcome Guest, Not a member yet? Register   Sign In
Route and Pagination
#3

In your example, is tag the controller and page method?

In that case you need to add one more argument to router code - $2 to get page number
PHP Code:
$route['tag/(:any)/(:num) = 'tag/page/$1/$2'; 

And controller class:
PHP Code:
class Tag extends CI_controller
{
    public function 
page($tag false$page 1)
    {
        
// ... your code here
    
}

Reply


Messages In This Thread
Route and Pagination - by Headpetrol - 07-29-2018, 06:30 AM
RE: Route and Pagination - by Gurutechnolabs - 08-15-2018, 05:55 AM
RE: Route and Pagination - by Pertti - 08-15-2018, 07:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB