Within a controller I tried to redirect the user by
return $this->redirect($this->generateUrl('...'));, but I couldn't find the corresponding route name. I did not define any baseroutepattern or baseroutename in the Admin file. In order to find out the route name, locate the service entry for the corresponding admin in admin.yml and copy the service name. On the terminal, type
bin/console sonata:admin:explain and paste the service name to the end of the command. This command shows all routes associated with the service which can be used in generateUrl().
Noch kein Feedback
Formular wird geladen...