全站所有站内链接生成函数,返回对应的URL访问链接格式;全站所有模板均可调用。
参数 |
描述 |
$model |
必需。字符串值,访问的模型与操作
允许的值
- index/index 首页/首页
- list/read 列表/分类页
- list/ename 列表/分类页(按别名)
- ajax/*** 自定义模板/任意模件文件名
- vod/show 视频/分类页(按ID)
- vod/category 视频/分类页(按别名)
- vod/type 视频/分类筛选页
- vod/tags 视频/TAG聚合话题页
- vod/search 视频/搜索页
- vod/read 视频/详情页(按ID)
- vod/ename 视频/详情页(按别名)
- vod/play 视频/播放页(按ID)
- vod/eplay 视频/播放页(按别名)
- vod/ename 视频/详情页(按别名)
- vod/vip 视频/VIP视频播放页
- vod/rss 视频/单个视频订阅
|
$params |
可选。数组格式,URL参数
默认:空
参数实例:array('id'=>$vod_id,'p'=>1) |
$suffix |
可选。布尔类型,后缀名
默认:true
|
xz_url 调用实例:查看返回结果
1
2
3
4
5
|
{:xz_url( 'vod/read' , array ( 'id' => $news_id , 'p' => $news_page ), true)}
{:xz_url( 'vod/ename' , array ( 'id' => $xzcms [ 'vod_ename' ]), true)}
{:xz_url( 'vod/search' , array ( 'name' => 'FFWD' ), true)}
{:xz_url( 'special/read' , array ( 'id' => $ xzcms [
'special_id' ]), true)}
{:xz_url( 'ajax/show' , array ( 'tpl' => 'hot' ), true)}
|
暂无评论