coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: N2GetherNow on July 18, 2009, 07:39:48 PM

Title: How i can put php functions in template file?
Post by: N2GetherNow on July 18, 2009, 07:39:48 PM
i do this:

define('TEMPLATE_FILE', 'template.php'); in include/init.inc.php
but functions that i put doesn't work (they works fine, when i put them in stand alone file)

i want to be performed on server instead of client browser, any ideas ?
Title: Re: How i can put php functions in template file?
Post by: Nibbler on July 18, 2009, 07:51:38 PM
Read the FAQ.

Can I rename template.html to template.php to include PHP code in my template? (http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#renameTemplateHtml)