The good folks at Yii dropped their latest framework release, 1.1.9, on January 1 of this year. Updating my applications use to this new framework was comically simple thanks to a small trick: using a symbolic link to reference the framework.
Whether you're downloading Yii for the first time, or upgrading to the latest Yii framework, you can create a symbolic link in your web root directory like this:
ln -s yii-1.1.9.r3527/ yii
Also update the following webapp files and replace each reference to the hard link with a reference to the symbolic link:
- /webapp/index.php
- /webapp/index-test.php
- /webapp/protected/yiic.php
- /webapp/protected/tests/bootstrap.php
Now here's where this comes in handy: when you're ready to upgrade to a new Yii framework, simply download it and unzip it in your web root, and update the symbolic to point to the new framework. Boom, thirty seconds, you've upgraded.
(Of course it's only this easy if you haven't hacked any core framwework files. You haven't hacked any core framework files, right?)