Last active
December 11, 2015 05:18
-
-
Save matteosister/4550717 to your computer and use it in GitHub Desktop.
symfony2 @ facile.it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Acme/DemoBundle/Controller/MainController.php | |
class MainController | |
{ | |
public function contactAction() | |
{ | |
return new Response('<h1>Contact us!</h1>'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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