Created
September 20, 2013 01:32
-
-
Save Bolinha1/6632208 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| namespace Site; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Templating\PhpEngine; | |
| use Symfony\Component\Templating\TemplateNameParser; | |
| use Symfony\Component\Templating\Loader\FilesystemLoader; | |
| class ControllerApp | |
| { | |
| public function index() | |
| { | |
| $loader = new FilesystemLoader(__DIR__.'/../../view/site/%name%'); | |
| $templating = new PhpEngine(new TemplateNameParser(), $loader); | |
| return $templating->render('index.php'); | |
| } | |
| public function quemSomos() | |
| { | |
| $loader = new FilesystemLoader(__DIR__.'/../../view/site/%name%'); | |
| $templating = new PhpEngine(new TemplateNameParser(), $loader); | |
| return $templating->render('quemSomos.php'); | |
| } | |
| public function produtos() | |
| { | |
| $loader = new FilesystemLoader(__DIR__.'/../../view/site/%name%'); | |
| $templating = new PhpEngine(new TemplateNameParser(), $loader); | |
| return $templating->render('produtos.php'); | |
| } | |
| public function nossosTrabalhos() | |
| { | |
| $loader = new FilesystemLoader(__DIR__.'/../../view/site/%name%'); | |
| $templating = new PhpEngine(new TemplateNameParser(), $loader); | |
| return $templating->render('trabalhos.php'); | |
| } | |
| public function contatos() | |
| { | |
| $loader = new FilesystemLoader(__DIR__.'/../../view/site/%name%'); | |
| $templating = new PhpEngine(new TemplateNameParser(), $loader); | |
| return $templating->render('contato.php'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment