Tooo many changes to list
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
<?php
|
||||
|
||||
use BBRouter\RouteCollection as RouteCollection;
|
||||
use RequestResponse\Response as Response;
|
||||
use Routes\RouteCollection as RouteCollection;
|
||||
|
||||
RouteCollection::add("GET", '/', function() {
|
||||
global $OUTPUT;
|
||||
$OUTPUT->load_view('wellcome');
|
||||
})->middleware_ignore('auth');
|
||||
include_once 'WellcomeController.php';
|
||||
|
||||
RouteCollection::add("GET", '/wellcome', function() {
|
||||
Response::json('This is an other wellcome message')->send();
|
||||
})->middleware_ignore('auth');
|
||||
RouteCollection::add('GET','/', function(){
|
||||
|
||||
global $OUTPUT;
|
||||
$OUTPUT->setTemplate();
|
||||
$OUTPUT->renderView('wellcome', Array('string' => Array('welcome' => 'Bem vindo')));
|
||||
|
||||
//$OUTPUT->renderView('wellcome', Array('string' => Lang::getStrings('welcome')));
|
||||
});
|
||||
|
||||
RouteCollection::add('get', '/welcome', 'WellcomeController@welcome');
|
||||
|
||||
+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();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,2 +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!';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
$string['wellcome']['module_name'] = 'wellcome';
|
||||
$lang['welcome']['module_name'] = 'welcome';
|
||||
|
||||
$string['wellcome']['wellcome'] = 'Bem-vindo!';
|
||||
$lang['welcome']['welcome'] = 'Bem-vindo!';
|
||||
|
||||
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
<div style="text-align: center">
|
||||
<img src="media/logo_black.png" />
|
||||
</div>
|
||||
|
||||
Wellcome to hell...
|
||||
{{string.welcome}} to hell...
|
||||
<br />
|
||||
I shal be your guide
|
||||
Reference in New Issue
Block a user