Where can i find the yii version of my yii app?

2019-03-17 04:45发布

I recently started to work with yii, where can i find the yii version of my yii app?

标签: php yii
6条回答
男人必须洒脱
2楼-- · 2019-03-17 04:50

From the framework folder and file "YiiBase.php". Find the function : getVersion()

查看更多
Rolldiameter
3楼-- · 2019-03-17 05:02

Add following line after require_once ($yii); in the index file

echo Yii::getVersion();
查看更多
再贱就再见
4楼-- · 2019-03-17 05:05

In Linux, run ./yii in the base directory. You will get something like:

./yii

This is Yii version 2.0.3.

The following commands are available:...
查看更多
冷血范
5楼-- · 2019-03-17 05:06

You Can find Yii Version in CHANGELOG - file In YII Install folder

查看更多
欢心
6楼-- · 2019-03-17 05:11

You can use getVersion() of YiiBase

Yii::getVersion();
查看更多
淡お忘
7楼-- · 2019-03-17 05:13

grep -A 5 getVersion framework/YiiBase.php

查看更多
登录 后发表回答