Download the PHP package kasonyang/smarty4hiano without Composer
On this page you can find all versions of the php package kasonyang/smarty4hiano. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package smarty4hiano
Smarty4Hiano
Hiano的Smarty模板驱动
特性
本库在Smarty基础上新增了3个标签
-
link函数
作用:生成资源文件的链接
参数:
uri
:相对于入口文件(index.php)的路径示例:
{{link uri="js/jquery.js"}}
-
url函数
作用:生成动作的链接
参数:
uri
:string,动作路径,指向一个动作,可以带参数,格式为[[MODULE/]CONTROLLER/]ACTION[?PARAM1=PARAM_VALUE1[&PARME2=PARAM_VALUE2&..]]
return
:boolean,是否将当前地址以参数的形式追加到目标网址上示例:
{{url uri="index"}}
{{url uri="home/index/index?id=1"}}
-
form块函数
作用:自动添加隐藏域
_csrftoken
,防止CSRF攻击参数:
支持任何参数,所有参数将直接转换成
模板语法
完全遵循Smarty的语法,有关Smarty的语法请浏览http://www.smarty.net
All versions of smarty4hiano with dependencies
PHP Build Version
Package Version
The package kasonyang/smarty4hiano contains the following files
Loading the files please wait ....