Answer the question
In order to leave comments, you need to log in
In Symfony, after creating a bundle, it gives an error 500. What's the problem?
I started to study symfony according to this https://habrahabr.ru/post/301760/ manual.
There it was suggested to delete the original bundle and create your own. All the necessary files described in the tutorial exist, but now when I also go to mysite/ , it gives an error 500. Before that, everything worked with the standard bundle. What could be the problem?
Answer the question
In order to leave comments, you need to log in
Don't forget to delete the default bundle (we won't need it) to do this:
Delete the AppBundle folder from the src directory
Delete the new AppBundle\AppBundle() line from the registered Bundles, in the app/AppKernel.php file
delete the default folder at app/Resources /views
remove these lines:
app:
resource: "@AppBundle/Controller/"
type: annotation
from app/config/routing.yml file
clear the cache register the bundle
php app/console clear:cache --env=dev
php app/console clear:cache --env=prod
then decipher the my_project/var/ directory
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question