mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-04-22 10:52:11 +00:00
30 lines
543 B
PHP
30 lines
543 B
PHP
<?php
|
|
|
|
namespace ModuleName\Controller;
|
|
|
|
use DeltaCMS\Controller;
|
|
use DeltaCMS\Authentificator;
|
|
|
|
class ExampleController extends Controller
|
|
{
|
|
|
|
public function example()
|
|
{
|
|
return "hello " . $this->getUrlArguments()["arg"] . "!";
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
return "Hellow Example Controller!";
|
|
}
|
|
|
|
public function isLoggedIn()
|
|
{
|
|
if (Authentificator::getInstance()->isLoggedIn()) {
|
|
return "test is false!";
|
|
} else {
|
|
return "test is true";
|
|
}
|
|
}
|
|
}
|