Advertisement
dartwlad

Untitled

Mar 11th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Controller;
  4.  
  5. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  6. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  7. use Symfony\Component\HttpFoundation\Request;
  8.  
  9. class DefaultController extends Controller
  10. {
  11.     /**
  12.      * @Route("/", name="homepage")
  13.      */
  14.     public function indexAction(Request $request)
  15.     {
  16.         // replace this example code with whatever you need
  17.         return $this->render('default/index.html.twig', [
  18.             'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
  19.         ]);
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement