我已经启用了以 Yii 显示的性能,如下所示。
'db'=>array(
'connectionString'=>'pgsql:host=localhost;port=5432;dbname=ijob_css',
'username'=>'postgres',
'password'=>'allion123',
'enableProfiling'=>true,
'schemaCachingDuration'=>604800
),
但是我仍然没有得到网站页面下显示的任何内容,并且它是空的。
在它起作用之前,最近我
被'启用分析'=>false
为什么它不起作用? 我一定错过了什么。
将其添加到主配置解决了这个问题。'class'=>'CProfileLogRoute',
'components'=>array(
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
array(
'class'=>'CProfileLogRoute',
),