When I am in my Symfony2 project using app_dev.php, I see my site. When I visit it using app.php, I see the Symfony2 welcome page, which is suitable for new projects.
I did not put anything in my config_dev.yml or routing_dev.yml files. I ran php app/console cache:clear . Why can't I see my project outside of development mode?
Here is my routing.yml
_welcome: resource: "@FooBundle/Resources/config/routing.yml"
and my routing_dev.yml
_assetic: resource: . type: assetic _wdt: resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" prefix: /_wdt _profiler: resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" prefix: /_profiler _configurator: resource: "@SymfonyWebConfiguratorBundle/Resources/config/routing/configurator.xml" prefix: /_configurator _main: resource: routing.yml
and FooBundle / Resources / config / routing.yml
homepage: pattern: / defaults: { _controller: FooBundle:Default:index } (other stuff...)
James source share