Package: io Author: Loic Rouchon <> Régis Viarre <> Desc: This class allows you to handle a template file. Your template files should have the .tpl extension. To be more efficient, this class uses a cache and parses each file only once. <h1>File identifiers</h1> The web site can have several themes whose files aren't in the same folders. When you load a file, you just have to load the generic file and the right template file will be loaded dynamically. <h2>Kernel template file</h2> When you want to load a kernel template file, the path you must indicate is only the name of the file, for example header.tpl loads /template/your_theme/header.tpl and if it doesn't exist, it will load /template/default/header.tpl. <h2>Module template file</h2> When you want to load a module template file, you must indicate the name of you module and then the name of the file like this: module/file.tpl which will load the /module/templates/file.tpl. If the user themes redefines the file.tpl file for the module module, the file templates/your_theme/modules/module/file.tpl will be loaded. <h2>Menu template file</h2> To load a file of a menu, use this kind of path: menus/my_menu/file.tpl which will load the /menus/my_menu/templates/file.tpl file. <h2>Framework template file</h2> To load a framework file, use a path like this: framework/package/file.tpl which will load /templates/your_theme/framework/package/file.tpl if the theme overrides it, otherwise /templates/default/framework/package/file.tpl will be used. Located at io/template/FileTemplate.class.php
AbstractTemplate implements Template
Extended by FileTemplate
Methods summary
# __construct( string $file_identifier )
public string
# render( )
Methods inherited from AbstractTemplate
__clone(), add_lang(), add_subtemplate(), assign_block_vars(), assign_vars(), disable_strict_mode(), display(), enable_strict_mode(), get_data(), get_pictures_data_path(), put(), put_all(), set_data()
Properties inherited from AbstractTemplate
$data, $loader, $renderer