@@ -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 | 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,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') ?>
|
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * @link https://stupidlysimple.github.io/ |
| 10 | 10 | */ |
| 11 | 11 | return [ |
| 12 | - 'enabled' => false, |
|
| 13 | - 'settings' => [ |
|
| 12 | + 'enabled' => false, |
|
| 13 | + 'settings' => [ |
|
| 14 | 14 | /* |
| 15 | 15 | * Default storage |
| 16 | 16 | * if you set this storage => 'files', then $cache = phpFastCache(); <-- will be files cache |
@@ -68,5 +68,5 @@ discard block |
||
| 68 | 68 | * Use 1 as normal traditional, 2 = phpfastcache fastest as default, 3 = phpfastcache memory stable |
| 69 | 69 | */ |
| 70 | 70 | 'caching_method' => 2, |
| 71 | - ], |
|
| 71 | + ], |
|
| 72 | 72 | ]; |
@@ -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' => [ |
@@ -10,8 +10,8 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | return |
| 12 | 12 | [ |
| 13 | - 'enabled' => true, |
|
| 14 | - 'settings' => [ |
|
| 13 | + 'enabled' => true, |
|
| 14 | + 'settings' => [ |
|
| 15 | 15 | 'host' => 'localhost', |
| 16 | 16 | 'driver' => 'mysql', |
| 17 | 17 | 'database' => 'stupidlysimple', |
@@ -20,5 +20,5 @@ discard block |
||
| 20 | 20 | 'charset' => 'utf8', |
| 21 | 21 | 'collation' => 'utf8_unicode_ci', |
| 22 | 22 | 'prefix' => '', |
| 23 | - ], |
|
| 23 | + ], |
|
| 24 | 24 | ]; |
@@ -10,5 +10,5 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | return |
| 12 | 12 | [ |
| 13 | - 'timezone' => 'Asia/Kuala_Lumpur', |
|
| 13 | + 'timezone' => 'Asia/Kuala_Lumpur', |
|
| 14 | 14 | ]; |
@@ -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 --> |