Core/Application/Controller/controller.standard.php
Abel Hoogeveen c5318a2e99 Added new namespaces as described in Issue #37. The following namespaces are used:
\FuzeWorks for Core classes
\Controller for controller classes
\Model for model classes
\Module for modules

Also did the following changes:
- DatabaseModel now loads the database module as a dependency
- DatabaseModel is no longer abstract because of ModelServer
- Implemented a new mechanism for model types in the name of a ModelServer. This interface requires a Model Type Server to return a Model parent class based on a given type
- Added a backtrace to the logger class for easy and fast debugging

And that was it for this commit
2015-04-29 17:18:33 +02:00

24 lines
481 B
PHP

<?php
namespace Controller;
use \FuzeWorks\Bus;
class Standard extends Bus {
public function __construct(&$core) {
parent::__construct($core);
}
public function index($path = null) {
$this->layout->view('maintenance');
}
public function not_found($path = null) {
$this->logger->http_error(404);
$this->layout->assign('page', $_SERVER['REQUEST_URI']);
$this->layout->assign('mail', $this->config->main->administrator_mail);
$this->layout->view('404');
}
}
?>