Re: [SMARTY] Set config file from php?
| From: | Monte Ohrt | Date: | Thu, 09 May 2002 13:39:02 +0000 |
| Subject: | Re: [SMARTY] Set config file from php? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4117@lists.php.net to get a copy of this message | ||
$smarty->assign('config_file',$template.'.cfg');
$smarty->assign('template',$template);
{config_load file=$config_file}
<img src="/img/themes/$template/pic1.jpg">
Ivan Voras wrote:
On Thu, 9 May 2002, Monte Ohrt wrote:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.{config_load file="$template/display.conf"} (in config_dir) /mytheme1/display.conf /mytheme2/display.conf ...well, yes and no. I see now that it would be a very nice solution IF my current themes system was organized that way from the start. My layout is like this: /img/themes/theme1/pic1.jpg /img/themes/theme1/pic1.jpg /img/themes/theme2/pic1.jpg /...something.../theme1/...some other theme1 related stuff ... /config/theme1.cfg /config/theme2.cfg (and for some reasons it must stay this way) -- Ashes to ashes, DOS to DOS ivoras @ fer.hr