我最近开始使用 yii,在哪里可以找到我的 yii 应用程序的 yii 版本?
你可以使用 YiiBase 的 getVersion()
getVersion()
Yii::getVersion();
在 Linux 中,在基目录中运行 ./yii。在 Windows 中,运行 .你会得到类似的东西:yii.bat
yii.bat
./yii This is Yii version 2.0.3. The following commands are available: [...]