This question already has an answer here:
I learn Symfony2 and i have: http://symfony.com/doc/current/quick_tour/the_big_picture.html
And if you use Apache with mod_rewrite enabled, you can even omit the app.php part of the URL:
Last but not least, on the production servers, you should point your web root directory to the web/ directory to secure your installation and have an even better looking URL:
how can i make this in WAMP Server?