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

后端 未结 6 984
庸人自扰
庸人自扰 2021-02-03 19:35

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

相关标签:
6条回答
  • 2021-02-03 20:08

    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:
    [...]
    
    0 讨论(0)
  • 2021-02-03 20:09

    grep -A 5 getVersion framework/YiiBase.php

    0 讨论(0)
  • 2021-02-03 20:12

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

    echo Yii::getVersion();
    
    0 讨论(0)
  • 2021-02-03 20:13

    You can use getVersion() of YiiBase

    Yii::getVersion();
    
    0 讨论(0)
  • 2021-02-03 20:14

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

    0 讨论(0)
  • 2021-02-03 20:18

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

    0 讨论(0)
提交回复
热议问题