updated defaults from examples
This commit is contained in:
11
defaults/App/config.php
Normal file
11
defaults/App/config.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$config = [
|
||||
'database' => [
|
||||
'host' => '',
|
||||
'name' => '',
|
||||
'user' => '',
|
||||
'pass' => '',
|
||||
'port' => 3306
|
||||
],
|
||||
'base_url' => 'http://localhost:8000'
|
||||
];
|
||||
15
defaults/App/controllers/404.php
Normal file
15
defaults/App/controllers/404.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
// Define our status code and message
|
||||
$status_code = 404;
|
||||
$status_message = 'The requested resource could not be found.';
|
||||
|
||||
// Set the HTTP response code and message
|
||||
http_response_code($status_code);
|
||||
header("Content-Type: text/html");
|
||||
?>
|
||||
|
||||
<h1>Error 404 Resource Not found</h1>
|
||||
<p><?php echo $status_message; ?></p>
|
||||
<p style="font-size:10px; margin-top:60px">Novaconium Default 404 page.</p>
|
||||
|
||||
2
defaults/App/controllers/index.php
Normal file
2
defaults/App/controllers/index.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
echo $twig->render('index.html.twig');
|
||||
9
defaults/App/routes.php
Normal file
9
defaults/App/routes.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$routes = [
|
||||
'/about' => [
|
||||
'get' => 'about'
|
||||
],
|
||||
'/' => [
|
||||
'get' => 'index'
|
||||
]
|
||||
];
|
||||
1
defaults/App/templates/override.html.twig
Normal file
1
defaults/App/templates/override.html.twig
Normal file
@@ -0,0 +1 @@
|
||||
{# Overrides go here #}
|
||||
7
defaults/App/views/index.html.twig
Normal file
7
defaults/App/views/index.html.twig
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends '@novaconium/master.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>This is twig</h1>
|
||||
<p>Content Here</p>
|
||||
{% endblock %}
|
||||
|
||||
4
defaults/public/.htaccess
Normal file
4
defaults/public/.htaccess
Normal file
@@ -0,0 +1,4 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php?_uri=$1 [QSA,L]
|
||||
6
defaults/public/index.php
Normal file
6
defaults/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/novaconium.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user