I have a large, mission critical application written in Yii 1. To migrate this amount of code is going to require a considerable amount of effort while ensuring the current Yii 1 application is stable and has minimal development done to it. As I mentioned this is a mission critical application.
Is the move to Yii 2 worth the effort? What am I going to gain?
NOTE: I have done some smaller applications using Yii 2 so I am familiar with it.
This application is here to stay so it sounds like I need to start planning a migration.
One of the tricky parts is trying to maintain a uniform UI while running sections of code from different Yii versions. Do you have any suggestions on which Yii version should be ‘running the show’? The Yii 2 guide suggests using Yii2 code in a Yii 1 application, however, it would seem to me that Yii 2 should be running Yii 1 code since Yii 2 is the ultimate destination.
I liked a start from scratch approach. Yes, it would ALOT OF WORK, but also a change to clean up code base. I’ve tried the Yii1 code in Yii2 app method and tended to just fix what didn’t run (add use statements, CHtml:: to Html::, etc), but left the old logic in place and not changing to what Yii2 offered.