added examples

This commit is contained in:
Nick Yeoman 2024-08-29 22:05:31 -07:00
parent 5f6b53a3b9
commit 1f7f76ade5
6 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1 @@
<h1>This is 404</h1>

View File

@ -0,0 +1,2 @@
<?php
echo $twig->render('index.html.twig');

View File

@ -0,0 +1,6 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?_uri=$1 [QSA,L]

View 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
View File

@ -0,0 +1,9 @@
<?php
$routes = [
'/about' => [
'file' => 'about'
],
'/' => [
'file' => 'index'
]
];

View File

@ -0,0 +1,7 @@
{% extends '@nytwig/master.html.twig' %}
{% block content %}
<h1>This is twig</h1>
<p>Content Here</p>
{% endblock %}