A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
592 B
23 lines
592 B
<?php
|
|
class ControllerErrorNotfound extends Controller {
|
|
|
|
public function index() {
|
|
$this->document->setTitle('404 %s');
|
|
|
|
header("HTTP/1.1 404 Not Found");
|
|
header("Status: 404 Not Found");
|
|
|
|
$this->children = array(
|
|
'common/footer',
|
|
'common/header'
|
|
);
|
|
|
|
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/error/not_found.tpl')) {
|
|
$this->template = $this->config->get('config_template') . '/error/not_found.tpl';
|
|
} else {
|
|
$this->template = 'default/error/not_found.tpl';
|
|
}
|
|
|
|
$this->response->setOutput($this->render());
|
|
}
|
|
}
|
|
|