global constants define ?

From: Date: Sun, 03 Apr 2005 09:23:52 +0000
Subject: global constants define ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12390@lists.php.net to get a copy of this message
hiya - I am doing some smarty-ing, and want to define a few constants which are used by many templates. however using two files like this; -- member.tpl: {include file="const.tpl} ... then do some stuff : but the constants/variables are NOT defined! -- const.tpl: {assign var="textCol" value="#FF0000" } the "textCol" is only seems to be valid within const.tpl, or any "child" files that it includes. so, without copying the definitions to the start of every master page, is there a better way? (ps not sure if this is the best list for smarty use questions, please let me know otherwise). thanks! /dc

« previous php.smarty.general (#12390) next »