config scope

From: Date: Wed, 11 Dec 2002 21:55:40 +0000
Subject: config scope
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6738@lists.php.net to get a copy of this message
Probably just me being stuipid, but i've been stuck on this the last hour or two; header.tpl: {config_load file="config.conf" scope="global"} <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">... style.tpl: {* Smarty *} {include file="header.tpl"} {include file="./admin/header.tpl"} showing {#recordsPerPage#} records per page. ... config.conf: # Main configuration file pageTitle = "Default Style" bodyBgColour = #ffffff recordsPerPage = 2 ... But none of the variables in config.conf are available in style.tpl, just in header.tpl. I thought scope=global should allow this? Debug shows that none of the config values are loading in the outer template: Smarty Debug Console included templates & config files (load time in seconds): ./admin/style.tpl (0.67411) (total) header.tpl (0.04061) config.conf [] global (0.00012) ./admin/header.tpl (0.04981) ./admin/menubar.tpl (0.02210) ./admin/buttons.tpl (0.00590) errorbox.tpl (0.00461) ./admin/footer.tpl (0.00458) footer.tpl (0.00405) assigned config file variables (outter template scope): {#files#} Array (0) {#vars#} Array (0) Anyone able to give me a clue? tia, Richard

« previous php.smarty.general (#6738) next »