[英]how to call the logPath defined in the main.php of yii?
如何獲取在yii中的配置的main.php中定義的logPath? 我試過了 ,
CFileLogRoute::getLogPath();
不起作用,大聲笑,我不知道如何正確調用它以輸出它的值
不確定為什么需要該路徑,但是在這里:
foreach(Yii::app()->log->routes as $route) {
if($route instanceof CFileLogRoute) {
echo "logPath: ".$route->logPath;
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.