added examples
This commit is contained in:
parent
5f6b53a3b9
commit
1f7f76ade5
1
examples/App/controllers/404.php
Normal file
1
examples/App/controllers/404.php
Normal file
@ -0,0 +1 @@
|
||||
<h1>This is 404</h1>
|
2
examples/App/controllers/index.php
Normal file
2
examples/App/controllers/index.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
echo $twig->render('index.html.twig');
|
6
examples/App/public/.htaccess
Normal file
6
examples/App/public/.htaccess
Normal file
@ -0,0 +1,6 @@
|
||||
RewriteEngine On
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
RewriteRule ^(.*)$ index.php?_uri=$1 [QSA,L]
|
6
examples/App/public/index.php
Normal file
6
examples/App/public/index.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
define('BASEPATH', dirname(__DIR__, 1));
|
||||
require_once(BASEPATH . '/vendor/4lt/novaconium/src/bootstrap.php');
|
||||
?>
|
9
examples/App/routes.php
Normal file
9
examples/App/routes.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$routes = [
|
||||
'/about' => [
|
||||
'file' => 'about'
|
||||
],
|
||||
'/' => [
|
||||
'file' => 'index'
|
||||
]
|
||||
];
|
7
examples/App/views/index.html.twig
Normal file
7
examples/App/views/index.html.twig
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends '@nytwig/master.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>This is twig</h1>
|
||||
<p>Content Here</p>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user