@@ -6,16 +6,16 @@ |
||
6 | 6 | |
7 | 7 | class LoginController extends Controller |
8 | 8 | { |
9 | - public function index() |
|
10 | - { |
|
11 | - $context = [ |
|
9 | + public function index() |
|
10 | + { |
|
11 | + $context = [ |
|
12 | 12 | |
13 | - ]; |
|
14 | - return $this->PugView->render('admin/pages/login', $context); |
|
15 | - } |
|
13 | + ]; |
|
14 | + return $this->PugView->render('admin/pages/login', $context); |
|
15 | + } |
|
16 | 16 | |
17 | - public function submit() |
|
18 | - { |
|
17 | + public function submit() |
|
18 | + { |
|
19 | 19 | |
20 | - } |
|
20 | + } |
|
21 | 21 | } |
22 | 22 | \ No newline at end of file |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class LogoutController extends Controller |
8 | 8 | { |
9 | - public function index() |
|
10 | - { |
|
9 | + public function index() |
|
10 | + { |
|
11 | 11 | |
12 | - } |
|
12 | + } |
|
13 | 13 | } |
14 | 14 | \ No newline at end of file |
@@ -6,11 +6,11 @@ |
||
6 | 6 | |
7 | 7 | class NotfoundController extends Controller |
8 | 8 | { |
9 | - public function index() |
|
10 | - { |
|
11 | - $context = [ |
|
9 | + public function index() |
|
10 | + { |
|
11 | + $context = [ |
|
12 | 12 | |
13 | - ]; |
|
14 | - return $this->PugView->render('notfound', $context); |
|
15 | - } |
|
13 | + ]; |
|
14 | + return $this->PugView->render('notfound', $context); |
|
15 | + } |
|
16 | 16 | } |
17 | 17 | \ No newline at end of file |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | interface MiddlewaresInterface |
8 | 8 | { |
9 | - public function handle(Application $app, $nex); |
|
9 | + public function handle(Application $app, $nex); |
|
10 | 10 | } |
11 | 11 | \ No newline at end of file |
@@ -7,8 +7,8 @@ |
||
7 | 7 | |
8 | 8 | class PermissionsMiddleware implements Middleware |
9 | 9 | { |
10 | - public function handle(Application $app, $next) |
|
11 | - { |
|
10 | + public function handle(Application $app, $next) |
|
11 | + { |
|
12 | 12 | |
13 | - } |
|
13 | + } |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -7,8 +7,8 @@ |
||
7 | 7 | |
8 | 8 | class AjaxMiddleware implements Middleware |
9 | 9 | { |
10 | - public function handle(Application $app, $next) |
|
11 | - { |
|
12 | - // if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) $this->url->redirectTo('error'); |
|
13 | - } |
|
10 | + public function handle(Application $app, $next) |
|
11 | + { |
|
12 | + // if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) $this->url->redirectTo('error'); |
|
13 | + } |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -6,15 +6,15 @@ |
||
6 | 6 | |
7 | 7 | class UserModel extends Model |
8 | 8 | { |
9 | - protected $table = 'users'; |
|
9 | + protected $table = 'users'; |
|
10 | 10 | |
11 | - public function permissions($id) |
|
12 | - { |
|
13 | - return $this->hasMany('UsersGroupPermissions', $id, 'id', 'users_group_id'); |
|
14 | - } |
|
11 | + public function permissions($id) |
|
12 | + { |
|
13 | + return $this->hasMany('UsersGroupPermissions', $id, 'id', 'users_group_id'); |
|
14 | + } |
|
15 | 15 | |
16 | - public function comments($id) |
|
17 | - { |
|
18 | - return $this->hasMany('Comment', $id); |
|
19 | - } |
|
16 | + public function comments($id) |
|
17 | + { |
|
18 | + return $this->hasMany('Comment', $id); |
|
19 | + } |
|
20 | 20 | } |
21 | 21 | \ No newline at end of file |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | class UsersGroupPermissionsModel extends Model |
8 | 8 | { |
9 | - protected $table = 'users_group_permissions'; |
|
9 | + protected $table = 'users_group_permissions'; |
|
10 | 10 | } |
11 | 11 | \ No newline at end of file |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'db' => [ |
|
5 | - 'server' => 'localhost', |
|
6 | - 'dbname' => 'blog', |
|
7 | - 'dbuser' => 'root', |
|
8 | - 'dbpass' => '' |
|
9 | - ], |
|
10 | - 'website' => [ |
|
11 | - 'websiteLang' => 'de', |
|
12 | - 'websiteCharset' => 'UTF-8', |
|
13 | - 'websiteDecsription' => 'Nice Framework', |
|
14 | - 'websiteKeywords' => 'framework', |
|
15 | - 'websiteAuth' => 'Refat Alsakka', |
|
16 | - 'websiteName' => 'framework', |
|
17 | - ], |
|
4 | + 'db' => [ |
|
5 | + 'server' => 'localhost', |
|
6 | + 'dbname' => 'blog', |
|
7 | + 'dbuser' => 'root', |
|
8 | + 'dbpass' => '' |
|
9 | + ], |
|
10 | + 'website' => [ |
|
11 | + 'websiteLang' => 'de', |
|
12 | + 'websiteCharset' => 'UTF-8', |
|
13 | + 'websiteDecsription' => 'Nice Framework', |
|
14 | + 'websiteKeywords' => 'framework', |
|
15 | + 'websiteAuth' => 'Refat Alsakka', |
|
16 | + 'websiteName' => 'framework', |
|
17 | + ], |
|
18 | 18 | ]; |
19 | 19 | \ No newline at end of file |