How to set default application for a Symfony project
Pointing your browser to the root directory of your Symfony project will bring you to the module default
of the first app you created for the project. The following is the content of the file web/index.php
in your Symfony’s project folder;
<?php require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); $configuration = ProjectConfiguration::getApplicationConfiguration('admin', 'prod', false); sfContext::createInstance($configuration)->dispatch();
In the example, the default app is admin
. To make it load the app frontend
for example, just replace admin
in the file with frontend
, and you’re all set.