<< Back to man.ChinaUnix.net



Table of Contents
Templates from $template_dir
Templates from any directory
Templates from other sources
Default template handler function

The templates may come from a variety of sources. When you display or fetch a template, or when you include a template from within another template, you supply a resource type, followed by the appropriate path and template name. If a resource is not explicitly given the value of $default_resource_type is assumed.

模板可以来自各种各样的资源。当你显示或者取得一个模板,或者当你在一个模板里面包含另外一个模板时,只要提供一个类型的资源,紧跟正确的路径和模板名。如果一个模板资源没有明确的给出 $default resource type 变量值,就认为这个资源为假定值。