update
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
.cache
|
*.cache
|
||||||
vendor
|
vendor
|
||||||
|
|
||||||
app.yaml
|
app.yaml
|
||||||
|
|||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"twig/twig": "^3.0"
|
"twig/twig": "^3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
function urlIs($value)
|
function urlIs($value)
|
||||||
{
|
{
|
||||||
return $_SERVER['REQUEST_URI'] === $value;
|
return $_SERVER['REQUEST_URI'] === $value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
require 'functions.php';
|
require 'functions.php';
|
||||||
require 'router.php';
|
require 'router.php';
|
||||||
require 'shared.php';
|
require 'shared.php';
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
require 'shared.php';
|
require 'shared.php';
|
||||||
|
|
||||||
echo $twig->render('404.html.twig');
|
echo $twig->render('404.html.twig');
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
require 'shared.php';
|
require 'shared.php';
|
||||||
|
|
||||||
echo $twig->render('index.html.twig');
|
echo $twig->render('index.html.twig');
|
||||||
|
|||||||
+1
-1
@@ -5,4 +5,4 @@ require_once 'vendor/autoload.php';
|
|||||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
||||||
$twig = new \Twig\Environment($loader, [
|
$twig = new \Twig\Environment($loader, [
|
||||||
'cache' => '.cache',
|
'cache' => '.cache',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -7,4 +7,4 @@
|
|||||||
404 Page Not Found
|
404 Page Not Found
|
||||||
</strong>
|
</strong>
|
||||||
</h1>
|
</h1>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user