More changes

This commit is contained in:
ahwelp
2020-04-16 22:13:47 -03:00
parent 9548157f02
commit 5840d1338b
11 changed files with 148 additions and 102 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
use Routes\RouteCollection as RouteCollection;
use App\Core\Template\Output as Output;
RouteCollection::add('GET','/', function(){
Output::setTemplate('');
Output::setView('welcome');
Output::addValue('string', Array('welcome' => 'Bem vindo'));
Output::addValue('palavrinha', 'Oi');
Output::render();
});
RouteCollection::get('/welcome', '\App\Core\Welcome\WelcomeController@welcome');