我需要在浏览器中显示日志文件。我想做一些像
if(isset($_Get['showlog'] && $_Get['showlog']==1){
$this_>redner('output', application.log);
}
有可能在yii中做到这一点吗?我怎么能做到呢?
非常感谢您的帮助
if (isset(Yii::app()->request->getQuery('showlog')) {
$this->render('output', application.log);
}
文档