mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
first commit
This commit is contained in:
commit
5352a2b94a
396 changed files with 10008 additions and 0 deletions
25
code/web/backend/application/controller/ErrorController.php
Normal file
25
code/web/backend/application/controller/ErrorController.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Class Error
|
||||
* This controller simply shows a page that will be displayed when a controller/method is not found. Simple 404.
|
||||
*/
|
||||
class ErrorController extends Controller
|
||||
{
|
||||
/**
|
||||
* Construct this object by extending the basic Controller class
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method controls what happens / what the user sees when a page does not exist (404)
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
$this->View->render('error/index');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue