假设我们当前页面的访问地址是:http:localhostCMSpublicindex.php?r=news&id=1(推荐教程:yii)一、1、 获取当前域名:echo Yii::app()->request-&g