Reconfigure template directory variables
| From: | Paul Bennett | Date: | Wed, 06 Feb 2002 17:34:55 +0000 |
| Subject: | Reconfigure template directory variables | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2652@lists.php.net to get a copy of this message | ||
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