Welcome Guest, Not a member yet? Register   Sign In
Pagination and routing
#1

I've read several archived posts from Ellislab about pagination and I dont understand why its not working. URLs are my weakness and http in general.

Help!?

In routes.php I have (second line down)

PHP Code:
$route['log/delete_img/(:any)/(:any)/(:any)'] =     'logs/delete_image/$1/$2/$3';
$route['log/(:any)/page/(:any)'] =             'logs/log/$1';
$route['log/(:any)'] =                     'logs/log/$1';
$route['log/(:any)/(:any)/date'] =             'logs/change_date/$1/$2';
$route['log/(:any)/(:any)/text'] =             'logs/edit_entry/$1/$2';
$route['log/(:any)/edit/(:any)'] =             'logs/edit/$1/$2'

and

PHP Code:
    //'uri_segment'        => 3,
    
'base_url'        => site_url() . '/log/' $slug,
    
'prefix'        => '/page/',
    
'total_rows'        => $this->user_model->get_count_entries($plantid),
    
'per_page'        => 2


controller
PHP Code:
    public function log($slug NULL) {
        
//method code here
    

   
Reply


Messages In This Thread
Pagination and routing - by meow - 01-26-2016, 10:17 AM
RE: Pagination and routing - by InsiteFX - 01-26-2016, 10:51 AM
RE: Pagination and routing - by meow - 01-26-2016, 11:48 AM
RE: Pagination and routing - by InsiteFX - 01-26-2016, 03:14 PM
RE: Pagination and routing - by meow - 01-26-2016, 08:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB