@@ -18,7 +18,7 @@ |
||
| 18 | 18 | | Try to go to /hello or /hello/yourname and see what it shows |
| 19 | 19 | | |
| 20 | 20 | */ |
| 21 | -Router::get('hello', function () { |
|
| 21 | +Router::get('hello', function() { |
|
| 22 | 22 | Viewer::file('resources/views/hello.php'); |
| 23 | 23 | }); |
| 24 | 24 | Router::get('hello/(:any)', 'Controller\Hello@greetWithName'); |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | | view files (home.php) into any directory within the project. |
| 19 | 19 | | |
| 20 | 20 | */ |
| 21 | -Router::get('', function () { |
|
| 21 | +Router::get('', function() { |
|
| 22 | 22 | Viewer::file('resources/views/home.php'); |
| 23 | 23 | }); |
| 24 | 24 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | | URI into any file. |
| 32 | 32 | | |
| 33 | 33 | */ |
| 34 | -Router::get('(:any)', function ($match) { |
|
| 34 | +Router::get('(:any)', function($match) { |
|
| 35 | 35 | Viewer::file('resources/views/'.$match); |
| 36 | 36 | }); |
| 37 | 37 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | --> |
| 7 | 7 | <html> |
| 8 | 8 | <?php |
| 9 | -$data = ['title' => 'StupidlySimple PHP | Home']; |
|
| 9 | +$data = [ 'title' => 'StupidlySimple PHP | Home' ]; |
|
| 10 | 10 | Core\Viewer::file('layouts/head.php', $data); ?>
|
| 11 | 11 | <body> |
| 12 | 12 | <!-- Wrapper --> |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | --> |
| 7 | 7 | <html> |
| 8 | 8 | <?php |
| 9 | -$data = ['title' => 'StupidlySimple | Controller']; |
|
| 9 | +$data = [ 'title' => 'StupidlySimple | Controller' ]; |
|
| 10 | 10 | Core\Viewer::file('layouts/head.php', $data); ?>
|
| 11 | 11 | <body> |
| 12 | 12 | <!-- Wrapper --> |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | --> |
| 7 | 7 | <html> |
| 8 | 8 | <?php |
| 9 | -$data = ['title' => 'StupidlySimple PHP | Service']; |
|
| 9 | +$data = [ 'title' => 'StupidlySimple PHP | Service' ]; |
|
| 10 | 10 | Core\Viewer::file('layouts/head.php', $data); ?>
|
| 11 | 11 | <body> |
| 12 | 12 | <!-- Wrapper --> |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | --> |
| 7 | 7 | <html> |
| 8 | 8 | <?php |
| 9 | -$data = ['title' => 'StupidlySimple PHP | Service']; |
|
| 9 | +$data = [ 'title' => 'StupidlySimple PHP | Service' ]; |
|
| 10 | 10 | Core\Viewer::file('layouts/head.php', $data); ?>
|
| 11 | 11 | <body> |
| 12 | 12 | <!-- Wrapper --> |
@@ -6,14 +6,14 @@ |
||
| 6 | 6 | --> |
| 7 | 7 | <html> |
| 8 | 8 | <?php |
| 9 | -$data = ['title' => 'StupidlySimple PHP | Home']; |
|
| 9 | +$data = [ 'title' => 'StupidlySimple PHP | Home' ]; |
|
| 10 | 10 | Core\Viewer::file('../layouts/head.php', $data); ?>
|
| 11 | 11 | <body> |
| 12 | 12 | <!-- Wrapper --> |
| 13 | 13 | <div id="wrapper"> |
| 14 | 14 | |
| 15 | 15 | <?php |
| 16 | - $top_data = ['is_admin' => true]; |
|
| 16 | + $top_data = [ 'is_admin' => true ]; |
|
| 17 | 17 | Viewer::file('../layouts/top.php', $top_data) ?>
|
| 18 | 18 | |
| 19 | 19 | <?php Viewer::file('../layouts/menu.php') ?>
|
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | --> |
| 7 | 7 | <html> |
| 8 | 8 | <?php |
| 9 | -$data = ['title' => 'StupidlySimple PHP | Service']; |
|
| 9 | +$data = [ 'title' => 'StupidlySimple PHP | Service' ]; |
|
| 10 | 10 | Core\Viewer::file('layouts/head.php', $data); ?>
|
| 11 | 11 | <body> |
| 12 | 12 | <!-- Wrapper --> |
@@ -42,11 +42,11 @@ |
||
| 42 | 42 | * Default Memcache Server for all $cache = phpFastCache('memcache'); |
| 43 | 43 | */ |
| 44 | 44 | 'server' => [ |
| 45 | - ['127.0.0.1', 11211, 1], |
|
| 45 | + [ '127.0.0.1', 11211, 1 ], |
|
| 46 | 46 | ], |
| 47 | 47 | |
| 48 | 48 | 'memcache' => [ |
| 49 | - ['127.0.0.1', 11211, 1], |
|
| 49 | + [ '127.0.0.1', 11211, 1 ], |
|
| 50 | 50 | ], |
| 51 | 51 | |
| 52 | 52 | 'redis' => [ |