Hi,
I want to concat router parameters but i couldnt find how to.
My URLs like that:
/settings/users
/settings/users/add
/settings/users/edit/47
/settings/users/delete/47
My Controller like that:
class Settings extends Controller
{
public function users() {}
public function usersAdd() {}
public function usersEdit() {}
public function usersDelete() {}
}
My router like that:
$router->add('/settings/users/:action', array(
'controller' => 'settings',
'action' => 'users' // Should be with action name with ucfirst like usersAdd
));
I want to create once route for multiple action. For ex: users
+ add
so usersAdd