OSDN Git Service

Javascriptキャッシュ設定
[trpgtools-onweb/cake-frame.git] / app / error.php
1 <?php
2 /**
3  * PHP version 5
4  *
5  * @category App
6  * @package  TRPG Data Bank!
7  * @version  beta
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/
11  */
12 class AppError extends ErrorHandler {
13
14         function error($params) {
15                 $this->controller->layout = "wrap";
16
17                 if (!isset($params['message'])) {
18                         $params['message'] = __('UNKNOWN ERROR', true);
19                 }
20
21                 $this->controller->set(array(
22                         'message' => $params['message'],
23                         'base' => $this->controller->base
24                 ));
25
26                 $this->_outputMessage('error');
27         }
28
29         function errorPcView($params) {
30                 $this->controller->layout = "mobile_default";
31
32                 $this->controller->set(array(
33                         'name' => __('PC View', true),
34                         'message' => "For PC browser View",
35                         'base' => $this->controller->base
36                 ));
37
38                 $this->_outputMessage('errorPcView');
39         }
40
41 }