Re: [SMARTY] defining arrays in config files
| From: | Marcus Bointon | Date: | Sat, 21 Feb 2004 13:25:46 +0000 |
| Subject: | Re: [SMARTY] defining arrays in config files | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10997@lists.php.net to get a copy of this message | ||
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
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@synchromedia.co.uk | http://www.synchromedia.co.uk