Re: [SMARTY] defining arrays in config files
| From: | pete M | Date: | Mon, 23 Feb 2004 12:49:18 +0000 |
| Subject: | Re: [SMARTY] defining arrays in config files | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11002@lists.php.net to get a copy of this message | ||
This just makes it more confusing for the end user...
At the moment I have a multilingual staff members who does some of the translation in the condig file and some in a php file.
Respecting arrays in the config file (in load sections) would solve this problem and thereby completely seperate the php logic from the templates IMHO.
pete
Marcus Bointon wrote:
on 21/2/04 13:03, Tarik ANSARI at ansari@efrei.fr wrote:If I am using smarty, it's because I want to be able to make my project translated only by templates files, there should be zero text strings in any php script of my project when completed. We shouldn't have to define those kind of strings in php while config files are made for this. There is no reason to Smarty for not supporting it...All I'm saying is that there's effectively no difference in concept or function between a parsed Smarty template and an included PHP file other than the syntax you used to fill it. I'm not disputing that it might be a nice feature to have so that you can use Smarty syntax throughout, but it's not one that breaks code/content separation in any way. Just because a file happens to have a .php suffix doesn't mean it can't be legitimately be regarded as being on the "content side" of things, though I suppose it might confuse some. Code/content separation is about concept rather than syntax. Marcus