Re: [SMARTY] Global Variable Question

From: Date: Wed, 26 Jun 2002 12:17:46 +0000
Subject: Re: [SMARTY] Global Variable Question
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5026@lists.php.net to get a copy of this message
Thank you both for the reply. My goal was to be able to the change the look of the entire site, simply using a different file name where it says "site_template.tpl" below. It dawned on me that a more logical way would be to simply change the content of the existing "site_template.tpl", rather than changing the name of the template file that smarty uses. I feel a bit silly now for even having asked, but again thanks for trying to help me. :) Avern
On Wednesday, June 26, 2002, at 10:59 , Avern Williams wrote:
Hi, All of my php files currently end something like this: require_once("Smarty.class.php"); $smarty = new Smarty; $smarty->assign("foo",$bar); $smarty->display("site_template.tpl"); They all specify the same display template file (it's global template for the entire site). Is there a way for me to define this filename only 1 time in Smarty? I don't think I can use a config file for this, because the config files set variables to be used by the templates, and I want the template name itself to be a variable. I've read through the information on global variables, but I'm not sure if they can solve this question. I'd really appreciate any suggestions. Thanks, Avern _________________________________________________________________ Join the worldís largest e-mail service with MSN Hotmail. http://www.hotmail.com -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

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