Naming Conventions 命名约定
2006-09-07 15:24
369 查看
Plugin files and functions must follow a very specific naming convention in order to be located by Smarty.
插件文件和函数必须遵循特定的命名约定以便Smarty识别。
The plugin files must be named as follows:
插件文件必须命名如下:
type.name.php
Where type is one of these plugin types:
其中type是如下插件中的一种:
function
modifier
block
compiler
prefilter
postfilter
outputfilter
resource
insert
And name should be a valid identifier (letters, numbers, and underscores only).
name为仅包含字母、数字和下划线的合法标志符。
Some examples例如: function.html_select_date.php, resource.db.php, modifier.spacify.php.
The plugin functions inside the plugin files must be named as follows:
插件内的函数应遵循如下命名约定:
smarty_type_name()
The meanings of type and name are the same as before.
type和name的意义如前。
Smarty will output appropriate error messages if the plugin file it needs is not found, or if the file or the plugin function are named improperly.
如果指定的插件文件不存在或命名不合规范,Smarty会输出相应的错误信息。
插件文件和函数必须遵循特定的命名约定以便Smarty识别。
The plugin files must be named as follows:
插件文件必须命名如下:
type.name.php
Where type is one of these plugin types:
其中type是如下插件中的一种:
function
modifier
block
compiler
prefilter
postfilter
outputfilter
resource
insert
And name should be a valid identifier (letters, numbers, and underscores only).
name为仅包含字母、数字和下划线的合法标志符。
Some examples例如: function.html_select_date.php, resource.db.php, modifier.spacify.php.
The plugin functions inside the plugin files must be named as follows:
插件内的函数应遵循如下命名约定:
smarty_type_name()
The meanings of type and name are the same as before.
type和name的意义如前。
Smarty will output appropriate error messages if the plugin file it needs is not found, or if the file or the plugin function are named improperly.
如果指定的插件文件不存在或命名不合规范,Smarty会输出相应的错误信息。
相关文章推荐
- Google C++编程风格指南(五):命名约定
- magento的命名约定(或称习惯,规范)
- Java学习—Java命名约定
- Ruby on rails开发从头来(windows)(三十三)- 命名约定
- MySQL数据库命名规范及约定
- java泛型-类型参数命名约定
- libjingle翻译之《Important Concepts(重要概念)之Naming Conventions(命名约定)》
- 命名约定
- Java 命名约定
- 我翻译的文档----Symbian基本规范:命名约定
- 未被管理的代码方法的命名约定
- 关于java命名的约定
- JavaScript规范之命名约定
- 项目开发过程中的命名规范(约定)
- ORACLE X$表命名约定
- MySQL数据库命名规范及约定
- 函数命名规则及调用约定(__cdecl,__stdcall,__fastcall)
- bean命名约定
- SQL数据库命名约定