Reestruturacao da pasta app e mudancas nos templates
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
<?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');
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use RR\Response as R;
|
||||
|
||||
class WellcomeController{
|
||||
|
||||
function welcome(){
|
||||
R::json(Array('message' => Lang::getString('welcome', 'welcome')))->send()->done();
|
||||
}
|
||||
|
||||
}
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
$lang['welcome']['module_name'] = 'welcome';
|
||||
|
||||
$lang['welcome']['welcome'] = 'Welcome!';
|
||||
|
||||
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
$lang['welcome']['module_name'] = 'welcome';
|
||||
|
||||
$lang['welcome']['welcome'] = 'Bienvenue!';
|
||||
|
||||
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
$lang['welcome']['module_name'] = 'welcome';
|
||||
|
||||
$lang['welcome']['welcome'] = 'Bem-vindo!';
|
||||
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
<div style="text-align: center">
|
||||
<img src="media/logo_black.png" />
|
||||
</div>
|
||||
{{string.welcome}} to hell...
|
||||
<br />
|
||||
I shal be your guide {{palavrinha}}
|
||||
Reference in New Issue
Block a user