Accessing values from config files indirectly {#$var#} ?
| From: | Michal Prinke | Date: | Fri, 26 Apr 2002 12:47:09 +0000 |
| Subject: | Accessing values from config files indirectly {#$var#} ? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3896@lists.php.net to get a copy of this message | ||
Let's say I have such a configuration file "section_titles.conf":
users = "Listing of our users"
poll = "A little questionnaire for all of you"
login = "Type your login & password here"
Then, I pass a variable "section" to the template:
$smarty->assign("section", "users");
$smarty->display();
...and I want to echo full section title:
<html>
<body>
<h1>{#$section#}</h1>
<p>blah blah blah
</body>
</html>
BUT! - The {#$section#} construct does not work:
Warning: Smarty plugin error: unknown tag - '#$subject#'
How to fix it?
Thanks...