如何在浏览器YII中显示日志文件

时间:2013-04-20 07:31:34

标签: php logging yii

我需要在浏览器中显示日志文件。 我想做点什么

    if(isset($_Get['showlog'] && $_Get['showlog']==1){
          $this_>redner('output', application.log);
    }

是否可以在yii中执行此操作?我怎么能这样做?

非常感谢您的帮助:)

1 个答案:

答案 0 :(得分:0)

if (isset(Yii::app()->request->getQuery('showlog')) {
          $this->render('output', application.log);
}

documentation

相关问题