0

我需要在浏览器中显示日志文件。我想做类似的事情

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

在 yii 中可以做到这一点吗?我该怎么做?

非常感谢你的帮助 :)

4

1 回答 1

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

文件

于 2013-04-20T08:31:54.100 回答