<?php
// src/Controller/EntrepriseController.php
namespace App\Controller;
use App\Entity\SujetFAQ;
use App\Entity\Article;
use App\Entity\AppUser;
use App\Entity\Product;
use App\Entity\Review;
use App\Entity\Category;
use App\Entity\Order;
use App\Entity\SlidePromo;
use App\Entity\ProductOrder;
use App\Entity\Entreprise;
use App\Entity\ProductMisDeCote;
use App\Entity\SubCategory;
use App\Entity\AvisUtilisateur;
use App\Form\SujetFAQType;
use App\Form\AvisUtilisateurType;
use App\Form\AvisUtilisateurEditType;
use App\Form\ProductType;
use App\Entity\ShippingMethod;
use App\Entity\AbonneNewsletter;
use App\Entity\Coupon;
use App\Entity\EnseignantClasse;
use App\Entity\UserEcole;
use App\Entity\ClasseUser;
use App\Entity\Produit;
use App\Entity\Ecole;
use App\Entity\UneClasse;
use App\Entity\CategorieEntreprise;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
/**
* @Route("")
*/
class IndexController extends AbstractController
{
/**
* @Route("", name="home_first")
* @return \Symfony\Component\HttpFoundation\Response
*
*/
public function indexFirstAction()
{
$em = $this->getDoctrine()
->getManager();
$ic = $this->indexContentAction();
$q = '';
$leRole = '';
$user = $this->getUser();
return $this->render('entreprise/accueil.html.twig', [
'leRole' => $leRole
]);
}
/**
* @Route("/{_locale}", name="home")
* @return \Symfony\Component\HttpFoundation\Response
*/
public function indexAction($_locale = 'fr')
{
$em = $this->getDoctrine()
->getManager();
$q = '';
$ic = $this->indexContentAction();
$localite = 'Abidjan';
$leRole = '';
return $this->render('entreprise/accueil.html.twig', [
'leRole' => $leRole
]);
}
/**
* @Route("{_locale}/chose-language", name="change_language")
* @return \Symfony\Component\HttpFoundation\Response
*/
public function changeLanguageAction()
{
$languages = array(
'fr' => array(
'short' => 'fr',
'long' => 'Français'
),
'en' => array(
'short' => 'en',
'long' => 'English'
)
);
return $this->render('entreprise/change_language.html.twig', [
'languages' => $languages
]);
}
public function indexContentAction()
{
}
}