8
8
class TofsimsController extends Controller
10
public function indexAction()
12
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Alert');
13
$liste_alert = $repository->findAll();
14
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Post');
15
$liste_post = $repository->findAll();
10
public function indexAction(){
12
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Alert');
13
$liste_alert = $repository->findAll();
14
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Post');
15
$liste_post = $repository->findBy(array('section'=>'accueil'));
18
17
return $this->render('TofsimsTofsimsBundle:Tofsims:index.html.twig', array('liste_alert' => $liste_alert, 'liste_post' => $liste_post));
22
public function articleAction()
24
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Article');
25
$liste_article = $repository->findAll();
28
return $this->render('TofsimsTofsimsBundle:Tofsims:article.html.twig', array('liste_article' => $liste_article));
21
public function articleAction(){
23
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Article');
24
$liste_article = $repository->findAll();
26
return $this->render('TofsimsTofsimsBundle:Tofsims:article.html.twig', array('liste_article' => $liste_article));
29
public function presentation_principeAction(){
30
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Post');
31
$liste_post = $repository->findBy(array('section'=>'principe'));
32
return $this->render('TofsimsTofsimsBundle:Tofsims:presentation_principe.html.twig', array('liste_post' => $liste_post));
35
public function presentation_videoAction(){
36
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Post');
37
$liste_post = $repository->findBy(array('section'=>'video'));
38
return $this->render('TofsimsTofsimsBundle:Tofsims:presentation_video.html.twig', array('liste_post' => $liste_post));
41
public function presentation_clusterAction(){
42
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Post');
43
$liste_post = $repository->findBy(array('section'=>'cluster'));
44
return $this->render('TofsimsTofsimsBundle:Tofsims:presentation_cluster.html.twig', array('liste_post' => $liste_post));
47
public function presentation_coutAction(){
48
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Post');
49
$liste_post = $repository->findBy(array('section'=>'cout'));
50
return $this->render('TofsimsTofsimsBundle:Tofsims:presentation_cout.html.twig', array('liste_post' => $liste_post));
53
public function presentation_compAction(){
54
$repository = $this->getDoctrine()->getManager()->getRepository('TofsimsTofsimsBundle:Post');
55
$liste_post = $repository->findBy(array('section'=>'comp'));
56
return $this->render('TofsimsTofsimsBundle:Tofsims:presentation_comp.html.twig', array('liste_post' => $liste_post));