I am very new to symfony and started learning by following their instructions on the website. I created the lucky number controller, but it is not working as I had hoped.
Here is the code for the LuckyController.php file I added. I am getting a 404 error page at the url localhost/testing/web/lucky/number.
public function numberAction()
$number = rand(0, 100);
return new Response(
'<html><body>Lucky number: '.$number.'</body></html>'
Well, your using the production inviroment in your request. Make sure your cache is clear or use the dev enviroment at