瀏覽代碼

在配置文件,显示错误信息,这样在部署模式下也能显示错误

star7th 9 年之前
父節點
當前提交
a6707d5a3f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Application/Common/Conf/config.php

+ 2 - 1
Application/Common/Conf/config.php

@@ -21,5 +21,6 @@ return array(
 	    ':id\d'               => 'Home/Item/Show?item_id=:1',
 	    ':id\d'               => 'Home/Item/Show?item_id=:1',
 	    'uid/:id\d'               => 'Home/Item/showByUid?uid=:1',
 	    'uid/:id\d'               => 'Home/Item/showByUid?uid=:1',
 	),
 	),
-	'URL_CASE_INSENSITIVE'=>true
+	'URL_CASE_INSENSITIVE'=>true,
+	'SHOW_ERROR_MSG'        =>  true,    // 显示错误信息,这样在部署模式下也能显示错误
 );
 );