RE: Reconfigure template directory variables

From: Date: Thu, 07 Feb 2002 05:24:22 +0000
Subject: RE: Reconfigure template directory variables
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2655@lists.php.net to get a copy of this message
Like so: $out->template_dir = 'the path'; $out->config_dir = 'the path'; $out->cache_dir = 'the path'; $out->compile_dir = 'the path'; (where $out is your instance of smarty) (These are not all the same, or even in the same dir, due to the way smarty is setup with my application....) Hope these help :-) Patrick. -----Original Message----- From: Paul Bennett [mailto:paul@approach-computing.co.uk] Sent: Thursday, 7 February 2002 6:35 a.m. To: smarty@lists.ispi.net Subject: [smarty] Reconfigure template directory variables Hello, I'm using Smarty for an application on my webserver and now intend to use it for another application under a different domain. The file structure of the two apps is different so I need to set the $template_dir, $config_dir and $compile_dir variables when I create the Smarty object in the new app. I've tried Smarty->$template_dir = "../templates"; etc, but still get the dreaded "unable to read template resource". Has anyone any ideas ? Paul --- You are currently subscribed to smarty as: me@pftqg.com To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

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