0

I have a home page located at /, defined in the DefaultController. It renders a Twig tempate.

When I run the application with http://localhost:8000/app_dev.php/, the home page is displayed.

When I run the application with http://localhost:8000/app.php/, I get the typical:

Welcome to Symfony 2.8.0-DEV
Your application is ready to start working on it at: /
What's next?
Read Symfony documentation to learn
...

message. How can I get app.php to display the home page?

When I browse http://localhost:8000/ I get:

The requested resource / was not found on this server.

0

1 Answer 1

2

You need to clear the cache to apply changes.

$ php app/console cache:clear --env=prod

Source : http://symfony.com/doc/current/cookbook/console/usage.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.