(resolved) theme.inc constructor & setStandardSettings() method

steph33560

Joined: 2008-01-11
Posts: 14
Posted: Sat, 2008-01-12 00:49

Hi !

I have setup this in the constructor method of my theme :

Quote:
function MyTheme() {
global $gallery;
$this->setStandardSettings(
array('test' => 'it'));
}

When I try to use this variable in album.tpl like this :

Quote:
--{$theme.params.test}--

I have only "----" printed ; debug says that :"Notice: Undefined index: test"

I think I have something wrong, but what ?

Thanks for your help :)

 
steph33560

Joined: 2008-01-11
Posts: 14
Posted: Mon, 2008-01-14 14:33

Answer is in the question : setStandardSettings()

for non standard settings use setParameter()