1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| <?php
| /**
| * 错误控制器
| */
| class ErrorController extends System_Controller_Base{
|
| public $layout = APP_ROOT.'/modules/Admin/views/layout/adminLayout.phtml';
| /**
| * 错误提示
| * @param string $type [description]
| */
| public function ShowAction($type = ""){
| switch ($type) {
| case 'no_data':
| $msg = '数据不存在';
| break;
| case 'no_auth':
| $msg = '权限不足,无法访问';
| break;
| case 'not_found':
| $msg = '页面未找到';
| break;
| default:
| $msg = '未知错误';
| break;
| }
| $this->getView()->assign('msg', $msg);
| }
| }
|
|