Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
symfony2 @
// src/Acme/DemoBundle/Controller/MainController.php
class MainController
public function contactAction()
return new Response('<h1>Contact us!</h1>');
# app/config/routing.yml
pattern: /contact
defaults: { _controller: AcmeDemoBundle:Main:contact }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment