Paths in Yii
来源:互联网 发布:淘宝售后流程表 编辑:程序博客网 时间:2024/06/07 01:15
{basePath}
1
echo
Yii::app()->basePath;
path/to/protected
{like} /YiiBlog/protected
{theme baseUrl}
1
echo
Yii::app()->theme->baseUrl;
path/to/themes/themeName
{like} /YiiBlog/themes
{request baseUrl}
1
echo
Yii::app()->request->baseUrl;
2
path/to/projectFolder
3
{like}/YiiBlog
{full URL}
1
http:
//localhost/yii_lab/index.php?r=lab/urlBoyLeeTest
{Yii::app()->request->hostInfo}
1
echo
(Yii::app()->request->hostInfo);
2
//out => http://localhost
{createUrl()}
1
echo
$this
->createUrl(
'urlBoyLeeTest'
);
2
//out => /yii_lab/index.php?r=lab/urlBoyLeeTest
{createAbsoluteUrl()}
1
echo
$this
->createAbsoluteUrl(
'urlBoyLeeTest'
);
2
//out => http://localhost/yii_lab/index.php?r=lab/urlBoyLeeTest
3
//A+B ^&^
- Paths in Yii
- register clientscript in Yii
- id in yii框架
- 【Leetcode】Unique Paths in JAVA
- “Header Search Paths” vs. “User Header Search Paths” in XCode?
- Working with Managed Paths in MOSS
- Single-source shortest paths in directed graphs
- Paths in a Complete Binary Tree codeforces
- absolute paths not recommended in jsps
- Yii 2.0: How to implement cron in Yii 2
- Paths
- Paths
- Paths
- Paths
- Paths
- Paths
- Paths
- Paths
- PROC系列
- arcmap加载.net开发的dll的问题
- asp.net中根据数据库中数据自动设置dropdownlist中选中的值
- 互联网周刊封面文章:全球网络广告三大趋势
- Eclipse SVN插件Subclipse的安装和配置详解
- Paths in Yii
- 完全自主研发搜索引擎开源,单机400万网页全文索引,任意检索不超过 20毫秒
- 冒泡排序算法
- iphone 简单的 example -----
- POJ2007
- 互联网周刊封面文章:全球网络广告三大趋势
- root密码丢失了怎么办?
- 在Ubuntu下安装git的过程
- Ext Js 3.2中表格的常见操作,主要是对表格属性的修改