-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved back base controllers with routes
- Loading branch information
Showing
6 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Phlexus\Modules\BaseAdmin\Controllers; | ||
|
||
use Phalcon\Mvc\Controller; | ||
|
||
/** | ||
* Abstract Admin Controller | ||
* | ||
* @package Phlexus\Modules\Admin\Controllers | ||
*/ | ||
abstract class AbstractController extends Controller | ||
{ | ||
/** | ||
* @return void | ||
*/ | ||
public function initialize(): void | ||
{ | ||
$this->tag->appendTitle(' - Phlexus Admin'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Phlexus\Modules\BaseAdmin\Controllers; | ||
|
||
final class ErrorsController extends AbstractController | ||
{ | ||
public function show402Action(): void | ||
{ | ||
// Nothing here | ||
} | ||
|
||
public function show404Action(): void | ||
{ | ||
// Nothing here | ||
} | ||
|
||
public function show500Action(): void | ||
{ | ||
// Nothing here | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Phlexus\Modules\PhlexusAdmin\Controllers; | ||
namespace Phlexus\Modules\BaseAdmin\Controllers; | ||
|
||
use Phalcon\Mvc\Controller; | ||
|
||
class IndexController extends Controller | ||
/** | ||
* Class IndexController | ||
* | ||
* @package Phlexus\Modules\Admin\Controllers | ||
*/ | ||
final class IndexController extends AbstractController | ||
{ | ||
/** | ||
* @return void | ||
*/ | ||
public function indexAction(): void | ||
{ | ||
|
||
$this->tag->setTitle('Dashboard'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters