Ne işlevi Ben Smarty config dosyasından bir değişkenin değerini okur sınıf Smarty için PHP kullanabilirsiniz?
İşte benim kod:
<?
session_start();
require('libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->config_load("settings.conf");
include('settings.php');
include('meta.php');
$smarty->debugging = false;
$smarty->caching =false;
$smarty->cache_lifetime = 120;
include("categories.php");
include("manufacturers.php");
include("logos.php");
print_r($smarty->getConfigVariable("showCategories"));
close_database_session($dbconn);
//$smarty->display('index.tpl');
?>