Re: include path

From: Date: Mon, 28 May 2001 05:17:11 +0000
Subject: Re: include path
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-831@lists.php.net to get a copy of this message
TOM, Thanks alot, your example give me a hint. I'd like to know if it's also possible to change the include path in the template file. The doc says the include can only accept relative path to template directory. But if it can support absolute path, that will be better. Kim > hi, > > > Thanks again. But I need to know how to apply this to Smarty's template > > file. > > ---cut--- > // for testing > define("TEMPLATE_PATH","../templates/html/"); > $templateFile = "test.ihtml"; > > // compose filename > $resource = "file:" . realpath(TEMPLATE_PATH . $templateFile); > > > // display template > $Smarty->display($resource); > ---cut--- > > if this is not what you want, please specify your question. > > bye, > TOM > > --- > You are currently subscribed to smarty as: kim@kimroan.net > 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 (#831) next »