piler/webui/controller/common/error.php

36 lines
633 B
PHP
Raw Permalink Normal View History

2012-02-08 23:14:28 +01:00
<?php
class ControllerCommonError extends Controller {
public function index(){
$this->id = "content";
$this->template = "common/error.tpl";
$this->layout = "common/layout";
2013-11-18 19:24:33 +01:00
$session = Registry::get('session');
2012-02-08 23:14:28 +01:00
$this->document->title = $this->data['text_error'];
$this->data['errortitle'] = $this->data['text_error'];
2013-11-18 19:24:33 +01:00
if($session->get("error")) {
$this->data['errorstring'] = $session->get("error");
$session->set("error", "");
2012-02-08 23:14:28 +01:00
}
else {
$this->data['errorstring'] = "this is the errorstring";
}
$this->render();
}
}
?>