01050: PHP code to include inside of the skin .tmpl file

Summary: PHP code to include inside of the skin .tmpl file
Created: 2008-10-01 13:42
Status: Closed
Category: Documentation
Assigned:
Priority: 5
Version: 2.1.27
OS:

Description: I would like to be able to include <?php include "$SkinDirUrl/randomimage.php"; ?> inside of the .tmpl file which references a php file inside the skin folder.

Is there documentation for how this should be done?


As per PmWiki.SkinTemplates#directives:

<!--file:$SkinDir/randomimage.php--

Note the use of $SkinDir instead of $SkinDirUrl. --Eemeli Aro January 20, 2009, at 04:37 AM