<?php

    // appele avec index.php ne pas metre si controleur fonctionnel
    require __DIR__ . '/../vendor/autoload.php';

    $loader = new \Twig\Loader\FilesystemLoader('templates');
    $twig   = new \Twig\Environment($loader, [
        'cache' =>  false,
    ]);
    //

    echo $twig->render('quote.html', array(
                        'srcImg' =>  "../default.jpg",
                        'nameCarac' => "default",
                        'quoteContent' => "je test la page",
                        'sourceName' => "une source",
                        'dateSortie' => "1999",
                        'nbLike' => "0",
                        'comment'=> array(
                            array(
                            'user'=>'toto',
                            'content'=>'12345674fkjgvhgtfoidshfziutgfos'
                            ),
                            array(
                            'user'=> 'tata',
                            'content'=>'azertyuiopqsdfghjklmwxcvbn'
                            )
)));
?>