I\'ve got Symfony2 installed, and a mostly working site, the only issue is I don\'t know how to set a default route. Currently, I access my index and other routes with the follo
For me Symfony 4.1.x
Symfony 4.1.x
Edit the file
# app/config/routes.yaml index: path: / controller: App\Controller\YourIndexController::yourIndexFunction
There's App\Controller is the namespace you declare at the start of the Controller class, and after is your class name and method name to route to.
App\Controller
namespace
Controller