yiiyii2

how to convert yii 1 application to version 2


We have website which built in yii 1.1 version, now we would like to convert it to version 2. But we already have a lots of functionality and we do not have much time to do everything by scratch in yii 2. please do suggest.


Solution

  • I don't think there is a fast way of converting or migrating from Yii 1.1 to Yii2. They are similar in some ways but different enough.

    I would recommend you first read most of The Definitive Guide to Yii 2.0, which includes Upgrading from Version 1.1.

    In my opinion the best you can do is try to replicate the same modules and their functionality one at a time, trying to reuse as much code as you can from the 1.1 version. A few things that i think would be important are:

    In the end you will need to spend time to have a Yii2 version of your website, there is no easy and fast way to jump