/** * Identify action to execute based on the incoming request */ public function routerCreateAction(Request $request) { $actionName = "index"; //Check if inside the url there is an action attribute if ($request->requestParamExist('action')) { //The controllerName is in fact the class to instance $actionName = $request->requestGetParam('action'); } return $actionName; }