Reputation: 910
this is my controller:
/**
* \brief Change Password of currently logged in user
* @Route("/changePw", name="changePw" )
* @Template()
*/
public function changePwAction(Request $req)
{
//controller code here
}
When I change the line
* @Route("/changePw", name="changePw" )
to:
* @Route("/changePw2", name="changePw2" )
This change does not take effect and the page still loads from /changePw
I thought that might be cache. So I tried:
php app/console cache:clear --env=dev
which didn't help either. It seems to be something obvious, but as I'm new to symfony I can not figure it out.
Upvotes: 1
Views: 1517
Reputation: 9362
You should not need to clear the dev cache for routing changes, if you are accessing the site using the app.php
however and not app_dev.php
then you will need to clear the prod cache for this to work. php app/console cache:clear --env=prod
Upvotes: 1