6 * @package TRPG Data Bank!
8 * @author Cake <cake_67@users.sourceforge.jp>
9 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
10 * @link http://trpgtools-onweb.sourceforge.jp/
12 class AppError extends ErrorHandler {
14 function error($params) {
15 $this->controller->layout = "wrap";
17 if (!isset($params['message'])) {
18 $params['message'] = __('UNKNOWN ERROR', true);
21 $this->controller->set(array(
22 'message' => $params['message'],
23 'base' => $this->controller->base
26 $this->_outputMessage('error');
29 function errorPcView($params) {
30 $this->controller->layout = "mobile_default";
32 $this->controller->set(array(
33 'name' => __('PC View', true),
34 'message' => "For PC browser View",
35 'base' => $this->controller->base
38 $this->_outputMessage('errorPcView');