Re: Optimization of PHP Code
| From: | Eric Butera | Date: | Fri, 18 Jul 2008 16:35:08 +0000 |
| Subject: | Re: Optimization of PHP Code | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277045@lists.php.net to get a copy of this message | ||
On Fri, Jul 18, 2008 at 11:43 AM, Robert Cummings <robert@interjinn.com> wrote:
> On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote:
>>
>> Do not use, template system, use inline php code for templates.
>
> Oh dear... you must subscribe to FUD 101.
???
I use straight php files for my templates. My templates are very
strict in what they allow, but that is just a coding guideline, not an
enforced thing. Basically they're read only & don't contain any real
logic. I allow function calls, but only for things that are reads.
Writes need to happen inside the controller.