mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-07-29 05:09:50 +00:00
Reworked most file to respect PSR-2
This commit is contained in:
@ -3,11 +3,27 @@
|
||||
namespace ModuleName\Controller;
|
||||
|
||||
use AdminPanel\Classes\Controller;
|
||||
use AdminPanel\Classes\Authentificator;
|
||||
|
||||
class ExampleController extends Controller
|
||||
{
|
||||
|
||||
class ExampleController extends Controller {
|
||||
public function example()
|
||||
{
|
||||
return "hello " . $this->getUrlArguments()["arg"] . "!";
|
||||
}
|
||||
|
||||
public function example() {
|
||||
return "hello Controller!";
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
return "Hellow Example Controller!";
|
||||
}
|
||||
|
||||
public function isLoggedIn()
|
||||
{
|
||||
if (Authentificator::getInstance()->isLoggedIn()) {
|
||||
return "test is false!";
|
||||
} else {
|
||||
return "test is true";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user