Re: [SMARTY] Smarty 2.6.0 RC1 - Change in path handling

From: Date: Wed, 13 Aug 2003 09:53:37 +0000
Subject: Re: [SMARTY] Smarty 2.6.0 RC1 - Change in path handling
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10051@lists.php.net to get a copy of this message
> > > In 2.5.0 it was quite valid (and useful!) to have template_dir as an > array > > > of template directories. > > > > was this "feature" ever announced and/or documented anywhere? > > Probably not (I thought I found it before but I can't now so I guess it > worked and I just used it - bad idea I know). However, it is a very useful > feature which is simple to carry forward. > > Subject line changed accordingly - any chance we can "keep" this > functionality? It's not necessairy to handle multiple template directories in an array. This will work also: if (!defined('_BASE_DIR')) define('_BASE_DIR', dirname(__FILE__)); $smarty->template_dir = _OP_BASE_DIR.'/'; $smarty->display('template_dir1/index.tpl'); //or from an other directory $smarty->display('template_dir2/index.tpl');

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