This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/web/pages/err/controller.php

16 lines
259 B
PHP
Raw Normal View History

2023-10-20 20:41:49 +02:00
<?php
class Err extends Page {
function notfound($params)
{
$this->set("page",$params[0]);
2023-10-21 21:30:20 +02:00
$this->set('template', "notfound.html");
2023-10-20 20:41:49 +02:00
}
function notallowed()
{
return json_encode(['error'=>'not allowed']);
}
}