设置参数config/main.php:
'params'=>array( 'myParam' => 'http://sunhaibing.com/', ),
程序中获取:
Yii::app()->params['myParam'];
设置参数config/main.php:
'params'=>array( 'myParam' => 'http://sunhaibing.com/', ),
程序中获取:
Yii::app()->params['myParam'];
You must be logged in to post a comment.
近期评论