Wednesday, February 22, 2012

Return Home
Contact Me

Soholaunch getTemplatePath() / showTemplatePath()

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’

Comments

Please post your comments, questions, or suggestions here.

* Denotes a required field.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent Posts: