L
L
lotrop2016-10-15 20:34:41
symfony
lotrop, 2016-10-15 20:34:41

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

1 answer(s)
A
Andrey Shakhtarin, 2016-10-15
@lotrop

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 question

Ask a Question

731 491 924 answers to any question