Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
symfony2 @ facile.it
<?php
// src/Acme/DemoBundle/Controller/MainController.php
class MainController
{
public function contactAction()
{
return new Response('<h1>Contact us!</h1>');
}
}
# app/config/routing.yml
contact:
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