yii:获取当前域名的方法是【echo Yii::app()->request->hostInfo;】。获取当前url的方法是【echo Yii::app()->request->getUrl();】。
技术文章 / 下载软件趣味内容 / 专业带飞