Re: [SMARTY] sub-directories and templates

From: Date: Wed, 13 Aug 2003 19:51:56 +0000
Subject: Re: [SMARTY] sub-directories and templates
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10068@lists.php.net to get a copy of this message
On Wed, Aug 13, 2003 at 12:55:18AM -0400, Travis Low wrote: > I'm lazy and nonclairvoyant. Please cut-and-paste the exact error > message displayed by Smarty. ;-) > > cheers, > > Travis > > Chris Hubbard wrote: > >All, > >I apologize in advance if the answer to my question is obvious. But I'm > >stuck... > > > >I've got the following folder structure: > >/var/www/ > > /stuff > > /templates > > /templates_c > > /templates > > /templates_c > > > >I've got php files in the root of the web site (/var/www) and in the stuff > >folder. > > > >The php files load smarty and then display a template. Currently I've got > >templates in a subfolder under /stuff, but I would rather have them in the > >templates folder at the root of the web site. I've tried various things > >like: > >in /stuff/index.php > >$smarty->display("../templates/index.tpl"); > >or > >$smarty->display("../index.tpl"); > >and neither works, I get an error telling me that Smarty can't find the > >template. Even though the path (in the first instance at least) is > >technically correct. > >so now I've got: > >$smarty->display("index.tpl"); > >which loads the template located at: /var/www/stuff/templates > >I want it to load the template located at: /var/www/templates > > > >Suggestions? $smarty->display("file:/var/www/templates/index.tpl"); HTH messju > >Chris Hubbard > >chris@wildcharacters.com > >www.wildcharacters.com > >425 481 2020 > > > >php based web application development > > > >Y! hoponpopontoponmoponcop@yahoo.com > >MSN another_ganesha@hotmail.com > >AIM ganeshacph > > > > > > -- > Travis Low > <mailto:travis@dawnstar.com> > <http://www.dawnstar.com> > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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