Smarty - the compiling PHP template engine | ||
---|---|---|
上一篇教材 宏博CMS网站内容管理系统 收集整理 | 下一篇教材 |
You can retrieve templates using whatever possible source you can access with PHP: databases, sockets, LDAP, and so on. You do this by writing resource plugin functions and registering them with Smarty.
See resource plugins section for more information on the functions you are supposed to provide.
Note: Note that you cannot override the built-in file resource, but you can provide a resource that fetches templates from the file system in some other way by registering under another resource name.
上一篇教材 宏博CMS网站内容管理系统 收集整理 | Smarty教材 主目录 | 下一篇教材 |
Templates from any directory | 章节索引页 | Default template handler function |