摘要:
Yii获取当前url和域名假设我们当前页面的访问地址是:http://localhost/CMS/public/index.php?r=news&id=1一、1、获取当前域名:echoYii::app()->request->hostInfo;结果:http://localhost2、获取(除域名外... 阅读全文
摘要:
创建第一个应用打开cmd,切换到appserv的www目录下,输入:D:\AppServ\www>yii6\framework\yiicwebappD:wamp\www\mydemos 阅读全文