I have a custom route in my routes.yml
Director:
rules:
'$URLSegment/$Name/$Action/$ID': 'BaseController'
Which is being managed by BaseController:
class BaseController extends ModelAsController {
// this is called because it extends ModelAsController
public function getNestedController() {
$params = $this->getRequest()->params();
$profile = new ProfileController();
$profile->profile = $params['URLRequest'];
return $profile;
}
}
Now this calls the index of ProfileController but if i had a path like /rudiger/test it still calls index and the action is never followed. I have setup allowed_actions. How can I get the correct action to be called?