zoukankan
html css js c++ java
YII获取当前URL
<?php
//当前域名
echo
Yii::
app
(
)
->
request
->
hostInfo
;
//除域名外的URL
echo
Yii::
app
(
)
->
request
->
getUrl
(
)
;
//除域名外的首页地址
echo
Yii::
app
(
)
->
user
->
returnUrl
;
//除域名外的根目录地址
echo
Yii::
app
(
)
->
homeUrl
;
?>
查看全文
相关阅读:
Java [Leetcode 191]Number of 1 Bits
Java [Leetcode 235]Lowest Common Ancestor of a Binary Search Tree
Java [Leetcode 169]Majority Element
Java [Leetcode 171]Excel Sheet Column Number
Java [Leetcode 217]Contains Duplicate
Java [Leetcode 242]Valid Anagram
Java [Leetcode 100]Same Tree
Java [Leetcode 258]Add Digits
Java [Leetcode 104]Maximum Depth of Binary Tree
D365 FO财务维度
原文地址:https://www.cnblogs.com/jthb/p/3447517.html
最新文章
ES6标准
boostrap插件
Bootstrap
jQuery第九章
jQuery第十一章
jQuery第六章
jQuery第五章
jQuery第四章
jQuery第三章
jQuery第二章
热门文章
jQuery第一章
POI报表打印
SpringMVC自定义类型转换器
mybatis的动态sql
MyBatis逆向工程
Shiro安全框架-简介
springMVC开启声明式事务实现操作日志记录
邮件发送的实现
Dubbo+Zookeeper的简单入门案例
Java [Leetcode 206]Reverse Linked List
Copyright © 2011-2022 走看看