how do I get $config_dir to work?
| From: | poQa . | Date: | Sun, 09 Mar 2003 05:53:53 +0000 |
| Subject: | how do I get $config_dir to work? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8490@lists.php.net to get a copy of this message | ||
Hi everyone,
This is my setup:
- home
/configs
site.conf- public_html /templates
header.tpl/templates_c index.php When I call 'header.tpl' from index.php, I cannot use the $config_dir variable: it returns null! I need a way to give 'header.tpl' this variable because it needs to include it with {config_load file=...} So, basically, I'd like to do this: {config_load file=$config_dir."site.conf"} Any other alternatives about this?? Thanks a lot, Ilir. _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail