Developing template locations

From KnowledgeTree Community

Jump to: navigation, search

The templating system in KnowledgeTree will search in multiple locations for templates, allowing a plugin to add a location for its own templates, and potentially override a built-in template.

To add a location, get the KTTemplating singleton, and use the addLocation method:

$oTemplating =& KTTemplating::getSingleton();
$oTemplating->addLocation('myplugin', '/plugins/myplugin/templates');
Personal tools