src/Controller/DefaultController.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. use Symfony\Component\HttpFoundation\ResponseHeaderBag;
  7. class DefaultController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/")
  11.      */
  12.     public function login(){
  13.         return $this -> render('login/login.html.twig');
  14.     }
  15.     /**
  16.      * @Route("/marketplace", name="marketplace")
  17.      */
  18.     public function marketplace(){
  19.         return $this -> render('marketplace.html.twig');
  20.     }
  21.     /**
  22.      * @Route("/financialheadlines", name="financialheadlines")
  23.      */
  24.     public function financialheadlines(){
  25.         return $this -> render('financialheadlines.html.twig');
  26.     }
  27.     /**
  28.      * @Route("/dashboard", name="client_dashboard")
  29.      */
  30.     public function client_dashboard(){
  31.         return $this -> render('clientportal/dashboard.html.twig');
  32.     }
  33.     /**
  34.      * @Route("/allocation", name="client_allocation")
  35.      */
  36.     public function client_allocation(){
  37.         return $this -> render('clientportal/allocation.html.twig');
  38.     }
  39.     /**
  40.      * @Route("/performance", name="client_performance")
  41.      */
  42.     public function client_performance(){
  43.         return $this -> render('clientportal/performance.html.twig');
  44.     }
  45.     /**
  46.      * @Route("/riskindicators", name="client_risk_indicators")
  47.      */
  48.     public function client_risk_indicators(){
  49.         return $this -> render('clientportal/riskindicators.html.twig');
  50.     }
  51.     /**
  52.      * @Route("/clustering", name="client_clustering")
  53.      */
  54.     public function client_clustering(){
  55.         return $this -> render('clientportal/clustering.html.twig');
  56.     }
  57.     /**
  58.      * @Route("/replication", name="client_replication")
  59.      */
  60.     public function client_replication(){
  61.         return $this -> render('clientportal/replication.html.twig');
  62.     }
  63.     /**
  64.      * @Route("/idashboard", name="internal_dashboard")
  65.      */
  66.     public function internal_dashboard(){
  67.         return $this -> render('internalportal/idashboard.html.twig');
  68.     }
  69.     /**
  70.      * @Route("/iclients", name="internal_clients")
  71.      */
  72.     public function internal_clients(){
  73.         return $this -> render('internalportal/iclients.html.twig');
  74.     }
  75.     /**
  76.      * @Route("/icontent", name="internal_content")
  77.      */
  78.     public function internal_pitch(){
  79.         return $this -> render('internalportal/icontent.html.twig');
  80.     }
  81.     /**
  82.      * @Route("/isales", name="internal_sales")
  83.      */
  84.     public function internal_sales(){
  85.         return $this -> render('internalportal/isales.html.twig');
  86.     }
  87.     /**
  88.      * @Route("/doc/{id}", name="pdf_viewer")
  89.      */
  90.     public function pdf_viewer($id){
  91.         // display the file contents in the browser instead of downloading it
  92.         return $this->file'doc/' $id 'my_invoice.pdf'ResponseHeaderBag::DISPOSITION_INLINE);
  93.     }
  94.     /**
  95.      * @Route("/iressources", name="internal_ressources")
  96.      */
  97.     public function internal_ressources(){
  98.         return $this -> render('internalportal/iressources.html.twig');
  99.     }
  100. }