设置参数config/main.php:

'params'=>array(
	'myParam' => 'http://sunhaibing.com/',
),

程序中获取:

Yii::app()->params['myParam'];