<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
class DefaultController extends AbstractController
{
/**
* @Route("/")
*/
public function login(){
return $this -> render('login/login.html.twig');
}
/**
* @Route("/marketplace", name="marketplace")
*/
public function marketplace(){
return $this -> render('marketplace.html.twig');
}
/**
* @Route("/financialheadlines", name="financialheadlines")
*/
public function financialheadlines(){
return $this -> render('financialheadlines.html.twig');
}
/**
* @Route("/dashboard", name="client_dashboard")
*/
public function client_dashboard(){
return $this -> render('clientportal/dashboard.html.twig');
}
/**
* @Route("/allocation", name="client_allocation")
*/
public function client_allocation(){
return $this -> render('clientportal/allocation.html.twig');
}
/**
* @Route("/performance", name="client_performance")
*/
public function client_performance(){
return $this -> render('clientportal/performance.html.twig');
}
/**
* @Route("/riskindicators", name="client_risk_indicators")
*/
public function client_risk_indicators(){
return $this -> render('clientportal/riskindicators.html.twig');
}
/**
* @Route("/clustering", name="client_clustering")
*/
public function client_clustering(){
return $this -> render('clientportal/clustering.html.twig');
}
/**
* @Route("/replication", name="client_replication")
*/
public function client_replication(){
return $this -> render('clientportal/replication.html.twig');
}
/**
* @Route("/idashboard", name="internal_dashboard")
*/
public function internal_dashboard(){
return $this -> render('internalportal/idashboard.html.twig');
}
/**
* @Route("/iclients", name="internal_clients")
*/
public function internal_clients(){
return $this -> render('internalportal/iclients.html.twig');
}
/**
* @Route("/icontent", name="internal_content")
*/
public function internal_pitch(){
return $this -> render('internalportal/icontent.html.twig');
}
/**
* @Route("/isales", name="internal_sales")
*/
public function internal_sales(){
return $this -> render('internalportal/isales.html.twig');
}
/**
* @Route("/doc/{id}", name="pdf_viewer")
*/
public function pdf_viewer($id){
// display the file contents in the browser instead of downloading it
return $this->file( 'doc/' . $id , 'my_invoice.pdf', ResponseHeaderBag::DISPOSITION_INLINE);
}
/**
* @Route("/iressources", name="internal_ressources")
*/
public function internal_ressources(){
return $this -> render('internalportal/iressources.html.twig');
}
}