|
@@ -8,9 +8,11 @@ RouteCollection::add('GET','/', function(){
|
|
|
|
|
|
|
|
global $OUTPUT;
|
|
global $OUTPUT;
|
|
|
$OUTPUT->setTemplate();
|
|
$OUTPUT->setTemplate();
|
|
|
- $OUTPUT->renderView('wellcome', Array('string' => Array('welcome' => 'Bem vindo')));
|
|
|
|
|
-
|
|
|
|
|
- //$OUTPUT->renderView('wellcome', Array('string' => Lang::getStrings('welcome')));
|
|
|
|
|
|
|
+ //$OUTPUT->renderView('wellcome', Array('string' => Array('welcome' => 'Bem vindo')));
|
|
|
|
|
+ $OUTPUT->setView('wellcome');
|
|
|
|
|
+ $OUTPUT->addValue('string', Array('welcome' => 'Bem vindo'));
|
|
|
|
|
+ $OUTPUT->addValue('palavrinha', 'Oi');
|
|
|
|
|
+ $OUTPUT->render();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
RouteCollection::add('get', '/welcome', 'WellcomeController@welcome');
|
|
RouteCollection::add('get', '/welcome', 'WellcomeController@welcome');
|