[TYPO3-mvc] initializeAction and forward to a specific view

Michael Knoll mimi at kaktusteam.de
Tue Aug 31 12:41:49 CEST 2010


Hi Daniel,

I don't know how to do it exactly, but perhaps you can "change" the 
request in your initialize action making the dispatcher / controller 
chose another action...

Greez

Mimi





Daniel Dimitrov schrieb:
> Hey Guys,
> In my controller I'm checking if the user is logged in or not and I want 
> to redirect him to the same controller, but in another action.
> 
> I thought that this would be an easy task - just check if the user has 
> the rights to view the resource in the initializeAction() function and 
> redirect him
> to public function youDontHavePermissions().
> 
> Now the problem that I encountered is the following
> if I do the check in initializeAction and use forward or redirect => 
> then the controller is called over and over again till either firefox or 
> extbase kill the action.
> 
> Is there any method that I can use in initializeAction to redirect to a 
> specific view?
> 
> Kind Regards,
> Daniel


More information about the TYPO3-project-typo3v4mvc mailing list