Moved bootstrap to novaconium
This commit is contained in:
parent
8190b5ed71
commit
ea40fc8e38
@ -16,8 +16,7 @@ Master Repo: https://git.4lt.ca/4lt/novaconium
|
|||||||
```bash
|
```bash
|
||||||
mkdir project_name;
|
mkdir project_name;
|
||||||
cd project_name;
|
cd project_name;
|
||||||
mkdir -p App/controllers App/templates App/views public
|
|
||||||
touch App/controllers/404.php App/controllers/index.php App/views/index.html.twig public/index.php public/.htaccess App/routes.php
|
|
||||||
|
|
||||||
composer require 4lt/novaconium
|
composer require 4lt/novaconium
|
||||||
|
cp -R vendor/4lt/novaconium/examples/App/ .
|
||||||
|
cp -R vendor/4lt/novaconium/examples/public/ .
|
||||||
```
|
```
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<?php
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
ini_set('display_errors', 1);
|
|
||||||
define('BASEPATH', dirname(__DIR__, 1));
|
|
||||||
require_once(BASEPATH . '/vendor/4lt/novaconium/src/bootstrap.php');
|
|
||||||
?>
|
|
1
examples/App/templates/override.html.twig
Normal file
1
examples/App/templates/override.html.twig
Normal file
@ -0,0 +1 @@
|
|||||||
|
{# Overrides go here #}
|
@ -1,6 +1,4 @@
|
|||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*)$ index.php?_uri=$1 [QSA,L]
|
||||||
RewriteRule ^(.*)$ index.php?_uri=$1 [QSA,L]
|
|
6
examples/public/index.php
Normal file
6
examples/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');
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user