System:Template:getModuleTemplateDir

From Aspen Documentation

Returns the server file path to a module template directory.

Since 1.0

Arguments

string getModuleTemplateDir ([ $module = false], [ $interface = false])

module
The name of a specific module to return the path to. If left false it will return the path to the current module.
interface
The name of a specific interface the module exists in. If left false it will return the path to the current interface.

Returns

Returns a server file path as a string.

Examples

This is an example of this function being used to add a template for display.

$this->APP->template->addView($this->APP->template->getModuleTemplateDir().DS . 'index.tpl.php');