Description
The absolute path to the current template directory, from the parent web directory either echoed or returned.
Usage
<?php $templatePath = $mytemplate->getTemplatePath(); ?>
or
<?php $mytemplate->showTemplatePath(); ?>
Return Value
If using getThisPage(), a string is returned with the template path.
Example
If Soholaunch is installed in the default web directory and the current template resides in a directory called ‘custom-template’,
<?php $templatePath = $mytemplate->getTemplatePath(); ?>
Would give $templatePath a vale of ‘/sohoadmin/program/modules/site_templates/pages/custom-template’
<?php $mytemplate->showTemplatePath(); ?>
Would echo the string ‘/sohoadmin/program/modules/site_templates/pages/custom-template’
