More changes
This commit is contained in:
Executable
+16
@@ -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');
|
||||
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Core\Welcome;
|
||||
|
||||
use RR\Response as R;
|
||||
|
||||
class WelcomeController{
|
||||
|
||||
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