Re: [SMARTY] SMARTY_DIR

From: Date: Mon, 20 May 2002 08:07:29 +0000
Subject: Re: [SMARTY] SMARTY_DIR
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4309@lists.php.net to get a copy of this message
SMARTY_DIR doesn¹t really have anything to do with the template dir, you need to set it yourself because it uses a path relative to the CWD. try: $smarty = new Smarty; $smarty->template_dir = "../smarty/templates"; -bok On 20/5/02 5:53 PM, G banged a keyboard and produced the following weird but readable email: > > What exactly is SMARTY_DIR used for? When I define it (using either relative > or absolute path), Smarty still can't locate the template dir. My dir > structure is: > > /admin/smarty_using_script.php > /smarty > /smarty/templates > ... > > > Gerard > >

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