18 lines
447 B
PHP
Executable File
18 lines
447 B
PHP
Executable File
<?php
|
|
|
|
use Routes\RouteCollection as RouteCollection;
|
|
use App\Core\Template\Output as Output;
|
|
|
|
include_once 'WellcomeController.php';
|
|
|
|
RouteCollection::add('GET','/', function(){
|
|
|
|
Output::setTemplate('');
|
|
Output::setView('wellcome');
|
|
Output::addValue('string', Array('welcome' => 'Bem vindo'));
|
|
Output::addValue('palavrinha', 'Oi');
|
|
Output::render();
|
|
});
|
|
|
|
RouteCollection::add('get', '/welcome', 'WellcomeController@welcome');
|