Your ROOT_URL in app.ini is https://code.exacti.com.br/ but you are visiting https://git.exacti.com.br/ExacTI/phacil-framework/blame/commit/1356183889d9427c30cf94de31f4af6f12b859e4/controller/error/not_found.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework

31 lines
817 B

6 years ago
<?php
/**
* Copyright (c) 2019. ExacTI Technology Solutions
* GPLv3 General License.
* https://exacti.com.br
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
*/
6 years ago
class ControllerErrorNotfound extends Controller {
public function index() {
$this->document->setTitle('404 %s');
$this->response->addHeader("HTTP/1.1 404 Not Found");
$this->response->addHeader("Status: 404 Not Found");
6 years ago
$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());
}
}