Skip to content

Commit ad49f27

Browse files
authored
Merge pull request #60 from mikhawa/comment1
comment index.php
2 parents d944290 + df7fdc0 commit ad49f27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_once "config.php";
44
require_once "function.php";
55

6-
// vendor dependencies
6+
// vendor dependencies (Twig)
77
require_once 'vendor/autoload.php';
88

99
// connection
@@ -18,5 +18,7 @@
1818
'cache' => '/path/to/compilation_cache',
1919
*/
2020
]);
21+
22+
// not into front controller
2123
// render a template with variables name and date in a array
2224
echo $twig->render('base.html.twig', ['name' => 'Michaël','date'=>date("Y-m-d H:i:s")]);

0 commit comments

Comments
 (0)