2012-06-05 141 views

回答

6

添加以下后require_once($警予)线;在索引文件

echo Yii::getVersion(); 
1

你可以找到Yii的版本中 CHANGELOG - 文件中谊Install文件夹

6

的grep -A 5 getVersion框架/ YiiBase.php

6

在Linux上运行./yii在基本目录中。你会得到这样的东西:

./yii 

This is Yii version 2.0.3. 

The following commands are available:... 
5

从框架文件夹和文件“YiiBase.php”。 找到函数:getVersion()

相关问题