yii框架怎么打开网页调试功能-LMLPHP

1、首先在入口文件 index.php中开启 debug 模式

defined('YII_DEBUG') or define('YII_DEBUG',true);
登录后复制

(相关教程推荐:yii框架

2、protected/config/main.php 的 log 下面

'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'enabled' => true,
                    'class' => 'CWebLogRoute',
                    'levels' => '',
                    'categories' => '',
                ),...
登录后复制

更多编程相关内容,请关注Work网编程入门栏目!

以上就是yii框架怎么打开网页调试功能的详细内容,更多请关注Work网其它相关文章!

09-05 08:22