Answer the question
In order to leave comments, you need to log in
Symfony 3: How to properly create a route (via annotations) to make it work?
1) I create a new project according to the documentation symfony.com/doc/current/setup.html
composer create-project symfony/framework-standard-edition my_project_name
composer install, update, e.t.c
/**
* @Route("/any", name="any")
* @Method("GET")
*/
public function anyAction()
{
return new Response("i`am loaded for test");
}
composer create-project symfony/symfony-demo
Answer the question
In order to leave comments, you need to log in
Apparently you are trying to enter the page through the prod environment, and clear the cache - for dev
Try
project/app_dev.php/any
Orphp bin/console cache:clear --no-warmup --env=prod
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question