Altering housekeeping modules
This commit is contained in:
Executable → Regular
+18
-10
@@ -5,19 +5,27 @@ use Routes\RouteCollection as RouteCollection;
|
||||
|
||||
//Menu itens
|
||||
RouteCollection::get('*', function() {
|
||||
|
||||
Output::headAdd('/', 'Dashboard');
|
||||
// Output::addMenu('/', 'Dashboard', "<i class='fa fa-dashboard'></i>", ['class' => 'nav-link']);
|
||||
Output::addSubMenu('dashboard', 'Dashboard', "<i class='fa fa-dashboard'></i>", ['class' => 'nav-link']);
|
||||
Output::addOnSubMenu('dashboard', '/', 'Dashboard', "<i class='fa fa-dashboard'></i>", ['class' => 'nav-link']);
|
||||
Output::addOnSubMenu('dashboard', '/teste', 'Test', "<i class='fa fa-dashboard'></i>", ['class' => 'nav-link']);
|
||||
|
||||
Output::addMenu('/', 'Dashboard', "<i class='fa fa-dashboard'></i>", ['class' => 'nav-link'], -10);
|
||||
Output::addMenu('/dre', 'DRE', "<i class='fa fa-bar-chart'></i>", ['class' => 'nav-link'], -10);
|
||||
}, -10)->doIgnore();
|
||||
|
||||
RouteCollection::onHttpError('404', function($code){
|
||||
Output::setView(404)->render();
|
||||
http_response_code(404);
|
||||
Output::setTemplate('NullTemplate');
|
||||
Output::render('404');
|
||||
});
|
||||
|
||||
RouteCollection::add('get', '/', '\App\Core\Welcome\WelcomeController@welcome');//->middlewareIgnore('auth');
|
||||
RouteCollection::add('get', '/', '\App\Core\Welcome\WelcomeController@welcome');
|
||||
RouteCollection::add('get', '/teste', '\App\Core\Welcome\WelcomeController@teste');
|
||||
//RouteCollection::add('get', '/welcome', 'WellcomeController@welcome');
|
||||
RouteCollection::add('get', '/dre', '\App\Core\Welcome\WelcomeController@dre');
|
||||
//Filters
|
||||
|
||||
RouteCollection::addDefaultMiddleware('fillpost', function () {
|
||||
|
||||
if(isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] != 'POST'){
|
||||
return;
|
||||
}
|
||||
|
||||
$_POST = array_merge( $_POST, (array) json_decode( file_get_contents('php://input')) );
|
||||
|
||||
});
|
||||
Executable → Regular
+5
-1
@@ -10,8 +10,12 @@ class WelcomeController {
|
||||
Output::render();
|
||||
}
|
||||
|
||||
function dre() {
|
||||
Output::render('dre');
|
||||
}
|
||||
|
||||
function teste(){
|
||||
echo 'saddsaadsdsa';
|
||||
var_dump($_SESSION);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
@@ -0,0 +1 @@
|
||||
<iframe src="http://192.168.0.100:3000/=nhfjg1alnf" style="width: 100%; min-height: 900px;"></iframe>
|
||||
Executable → Regular
+3
-1
@@ -3,4 +3,6 @@
|
||||
</div>
|
||||
{{string.welcome}} to hell...
|
||||
<br />
|
||||
I shal be your guide {{palavrinha}}
|
||||
I shal be your guide {{palavrinha}}
|
||||
|
||||
<i class='fa fa-dashboard'></i>
|
||||
Reference in New Issue
Block a user