Re: [SMARTY] Re: passing an array to an included template

From: Date: Fri, 03 May 2002 16:08:09 +0000
Subject: Re: [SMARTY] Re: passing an array to an included template
References: 1 2 3 4 5 6  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4037@lists.php.net to get a copy of this message
The content itself should come from the application. That would include the names of the links in your navigation bar. The templates should only handle the display of this content, not conjuring up the content itself. Now if the navigation links are always static but differ only for languages, you could hold the values of the links in a config file (one section per language) and load them into the template that way. Jens Lehmann wrote:
Yep. I still can't understand Jens' "problem", because it's selfmade by unlogical separating of content and templates.
I thought about this for a while. I've got an english and a german template for every PHP-file I have. The consequence is, that I don't assign any content within PHP. Do you (Norbert and Monte) think this strategy is a misuse of Smarty in general or is it just a specific problem with the navigation-bar? Or maybe I should better ask what is the difference between the navigation-bar and other template-content? Jens
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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