- added ADMIN index file
- cleanup config - added Asset Controller
This commit is contained in:
parent
7ba4e3e0a6
commit
fe7bacd2f6
14 changed files with 300 additions and 33 deletions
30
public/admin/index.php
Normal file
30
public/admin/index.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
use Venom\Config;
|
||||
use Venom\Venom;
|
||||
|
||||
require_once '../../vendor/autoload.php';
|
||||
if (!file_exists('../../config.inc.php')) {
|
||||
copy('../../config.base.php', '../../config.inc.php');
|
||||
echo 'Please change Config @ config.inc.php';
|
||||
exit();
|
||||
}
|
||||
if (!file_exists('../../module.inc.php')) {
|
||||
copy('../../module.base.php', '../../module.inc.php');
|
||||
echo 'Please change Modules @ module.inc.php';
|
||||
exit();
|
||||
}
|
||||
$config = Config::getInstance();
|
||||
$config->setIsAdmin(true);
|
||||
|
||||
require_once '../../config.inc.php';
|
||||
require_once '../../module.inc.php';
|
||||
|
||||
if ($config->isDevMode()) {
|
||||
error_reporting(E_ALL);
|
||||
ini_set('error_reporting', E_ALL);
|
||||
}
|
||||
$venom = new Venom();
|
||||
$venom->initModules($modules);
|
||||
$venom->initControllers($controllers);
|
||||
$venom->run();
|
||||
0
public/content/.gitkeep
Normal file
0
public/content/.gitkeep
Normal file
25
public/theme/default/css/test.css
Normal file
25
public/theme/default/css/test.css
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
background-color: #333;
|
||||
font-family: sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
header {
|
||||
font-size: 5vw;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
header:hover {
|
||||
color: #ff0323;
|
||||
}
|
||||
0
public/theme/default/js/test.js
Normal file
0
public/theme/default/js/test.js
Normal file
Loading…
Add table
Add a link
Reference in a new issue