DeltaCMS/modules/ModuleName/Controller/ExampleController.php
Florian Bouillon e945325c63 4-move-modules-folder-up (#4)
Files were moved to /modules/ and tests config were changed too.
2019-04-29 11:46:33 +00:00

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";
}
}
}