'users/(:segment)' => 'users/view/$1'
public function action_list($page){ //do something }
'users/([0-9]+)' => 'users/view/$1'
Jelmer Schreuder wrote on Thursday 1st of September 2011:It's run through preg_replace, thus this should work as long as your ids are numeric:
'users/([0-9]+)' => 'users/view/$1'
'users/(:num)' => 'users/view/$1' 'users' => 'users/list'
It looks like you're new here. If you want to get involved, click one of these buttons!