Reputation: 1468
If in a php file you had:
$smarty->assign('content','<p>This is some test content</p>');
and in a template file I hadb (just for example purposes):
<html>
<head></head>
<body>{$content}{config_load file='settings.conf'}{#setting1#}</body>
</html>
Would it be possible to load the setting from the config file, from the php file instead of the template file?
Upvotes: 0
Views: 274
Reputation: 300835
You can load a config file with config_load() and then use get_config_Vars() to obtain a loaded value.
Upvotes: 1