我最近开始使用 yii,在哪里可以找到 yii 应用程序的 yii 版本?
Yii::getVersion();
In Linux, run ./yii in the base directory. In Windows, run yii.bat
. You will get something like:
./yii
This is Yii version 2.0.3.
The following commands are available:
[...]
grep -A 5 getVersion 框架/YiiBase.php
From the framework folder and file "YiiBase.php". Find the function : getVersion()
Add following line after require_once ($yii); in the index file
echo Yii::getVersion();
您可以在 CHANGELOG - 文件中找到 Yii 版本在 YII 安装文件夹中
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.