Skip to content

Tag: routing

Heroku 403 Forbidden Error

I deployed a PHP application and when I hit the url, I get the following error: I guess it tries to go into the app/ directory but it can’t. My project structure: What the log shows: Procfile .htaccess Answer Ehhmm so I found the solution. My Procfile had a .txt extension (so Procfile.txt) whereas it ne…

Symfony2 Accessing route variables

I know I can access current route name by $request->get(‘_route’);. If my route is defined this way: How can I retrieve the id variable from within service? Answer $request->attributes->get(‘id’) does the trick.