Cheap Tricks Library Framework
Essentials Introduction Documentation Modules

Tpl module interface (DEPRECATED)

An object with name Tpl (or tpl) is deprecated (that means forbidden) in CTLF.

You should not create or use such objects in your scripts or modules.

Tpl interface is deprecated because there are lots of incompatible template engines. Usually they use not only different method names, but also different and incompatible mechanisms.

If your module uses templates, then port your template engine into ./system/lib directory and write a loader function for it (e.g. ./system/modules/MyVeryCoolTplEngine/MyVeryCoolTplEngine_loader.php).

Then use your newly created object name to load it:

$my_tpl = &loadObject('MyVeryCoolTplEngine');

$Revision: 1.1 $, $Date: 2005/11/22 07:09:49 $