how to define array on template level

From: Date: Mon, 11 Nov 2002 17:24:25 +0000
Subject: how to define array on template level
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6395@lists.php.net to get a copy of this message
I have an array, which contains a list of menu items and the same items should be printed as "titles" of pages. And I want to have array definition in separate file, but included (or somehow else used by a single-line command) from templates (not from main scripts). I could use {include} or {include_php}, but vars defined in included file have local scope. What can you suggest? Please, duplicate answers directly to my email too, since I use web-interface for lists. Thanks in advance, Konstantin

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