pull/17/head
kevin.modejar 6 months ago
parent fbf88794e1
commit 05e5cb3ffc

14
composer.lock generated

@ -4,7 +4,6 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
<<<<<<< HEAD
"content-hash": "68804b2111cb6b8bf6edf66cb2b4669c",
"packages": [
{
@ -68,11 +67,6 @@
"time": "2020-03-09T08:34:59+00:00"
},
{
=======
"content-hash": "e4bbfb6f07dd88c6288177f48b9cb54c",
"packages": [
{
>>>>>>> 8f986a30433c4424563cac3b838b80c8e6a12f1d
"name": "symfony/deprecation-contracts",
"version": "v3.5.0",
"source": {
@ -457,20 +451,12 @@
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
<<<<<<< HEAD
"stability-flags": [],
=======
"stability-flags": {},
>>>>>>> 8f986a30433c4424563cac3b838b80c8e6a12f1d
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"ext-pdo": "*"
},
<<<<<<< HEAD
"platform-dev": [],
=======
"platform-dev": {},
>>>>>>> 8f986a30433c4424563cac3b838b80c8e6a12f1d
"plugin-api-version": "2.6.0"
}

@ -1,9 +1,13 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
$loader = new Twig_Loader_Filesystem('templates');
$twig = new Twig_Environment($loader, array( 'cache' => false ));
$value = 'Salva';
// 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",
@ -11,6 +15,15 @@
'quoteContent' => "je test la page",
'sourceName' => "une source",
'dateSortie' => "1999",
'nbLike' => "0"
));
'nbLike' => "0",
'comment'=> array(
array(
'user'=>'toto',
'content'=>'12345674fkjgvhgtfoidshfziutgfos'
),
array(
'user'=> 'tata',
'content'=>'azertyuiopqsdfghjklmwxcvbn'
)
)));
?>

@ -25,7 +25,12 @@
</div>
</div>
<div class="Comment_Container">
{% if comment|length > 0%} <div>
{% for com in comment %}
<p class="userCom">{{ com.user }}</p>
<p class="com">{{ com.content }}</p>
{% endfor %} </div>
{% endif %}
</div>
</body>
</html>
Loading…
Cancel
Save