Initial commit
This commit is contained in:
commit
bd3fce7e64
25 changed files with 888 additions and 0 deletions
13
public/index.php
Normal file
13
public/index.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
use Twig\Environment;
|
||||
use Twig\Loader\FilesystemLoader;
|
||||
|
||||
$loader = new FilesystemLoader('../templates');
|
||||
|
||||
$twig = new Environment($loader, ['debug' => true]);
|
||||
|
||||
echo $twig->render('layouts/home.html.twig', Yaml::parseFile('../resources/data.yaml'));
|
Loading…
Add table
Add a link
Reference in a new issue