Home > php教程 > php手册 > smarty获得当前url的方法分享

smarty获得当前url的方法分享

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:25:03
Original
1367 people have browsed it

这篇文章主要介绍了smarty获得当前url的方法,需要的朋友可以参考下

{$smarty.server.SERVER_NAME}/{$smarty.server.REQUEST_URI}

注释:

复制代码 代码如下:


{$smarty.server.SERVER_NAME}//表示:服务器名称
{$smarty.server.REQUEST_URI}// 表示:请求的url



例如:

复制代码 代码如下:


{$smarty.server.SERVER_NAME} //表示:
{$smarty.server.REQUEST_URI}// 表示:/sysaction/getUserInfo.php

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
smarty turns on caching garbled characters
From 1970-01-01 08:00:00
0
0
0
Why does tp use smarty template? ?
From 1970-01-01 08:00:00
0
0
0
How do you use smarty to integrate laravel5?
From 1970-01-01 08:00:00
0
0
0
Two ways to install smarty
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template