Hi
I have an installation of 1.0.5… how do I upgrade it to 1.0.6 without overwriting my existing code and configurations ?
Thank you
Hi
I have an installation of 1.0.5… how do I upgrade it to 1.0.6 without overwriting my existing code and configurations ?
Thank you
Easy way: replace the yii directory you installed originally with the directory from the new yii package.
Thank you
The safest way would be to download yii source form google code
Quote
and the just change the following lines of code in you index.php file
<?php // change the following paths if necessary #$yii=dirname(__FILE__).'/../yii-source-1.0.5/framework/yii.php'; $yii=dirname(__FILE__).'/../yii-source-1.0.6/framework/yii.php'; $config=dirname(__FILE__).'/protected/config/main.php'; // remove the following line when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); require_once($yii); Yii::createWebApplication($config)->run(); ?>
so you can easily switch back to the previous release if something goes wrong
That line would give you the 'bleeding edge' code which might contain errors (probably code that won't be included till version 1.1)
If you want version 1.0.6 from the subversion you could get it like this:
svn checkout http://yii.googlecod…/svn/tags/1.0.6
But unless you know what you are doing (or willing to experiment), I'd strongly suggest downloading the .zip file.