Skip to content

Instantly share code, notes, and snippets.

@matteosister
Last active December 11, 2015 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matteosister/4550717 to your computer and use it in GitHub Desktop.
Save matteosister/4550717 to your computer and use it in GitHub Desktop.
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