rewrite for cleaner dev aber geht noch nicht
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
This commit is contained in:
20
web/pages/err/controller.php
Normal file
20
web/pages/err/controller.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
class Err extends Page {
|
||||
|
||||
function notfound($params)
|
||||
{
|
||||
$this->set("page",$params[0]);
|
||||
$this->set('template', "notfound.mustache");
|
||||
}
|
||||
|
||||
function notallowed()
|
||||
{
|
||||
return json_encode(['error'=>'not allowed']);
|
||||
}
|
||||
|
||||
function maySeeThisPage()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user