Re: [SMARTY] Re: fetch aboslute path

From: Date: Mon, 10 Mar 2003 20:38:38 +0000
Subject: Re: [SMARTY] Re: fetch aboslute path
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8539@lists.php.net to get a copy of this message
Le lun 10/03/2003 à 20:07, Tom Sommer a écrit : > On Mon, 10 Mar 2003 20:05:36 +0100, Tom Sommer wrote: > > > $smarty->fetch('/www/smarty/templ.tpl'); > > won't work if the template directory is set to something like > > '/www/mysite', is there no way to force smarty to look for a template in > > another directory? echo $smarty->fetch('/www/smarty/templ.tpl'); or echo $smarty->fetch('templ.tpl'); or $output = $smarty->fetch('templ.tpl'); echo $output; work perfectly If you want to display directly the template use $smarty->display('templ.tpl'); -- Jean-Michel Juzan jmjuzan@ecreasol.ch Direction Informations & Technologies eCreaSol - NetWork Creative Solutions SARL - http://www.ecreasol.ch/ PGP public keys server : http://www.keyserver.net

Attachment: [application/pgp-signature] signature.asc
« previous php.smarty.general (#8539) next »