Re: Optimization of PHP Code
| From: | Robert Cummings | Date: | Fri, 18 Jul 2008 17:55:43 +0000 |
| Subject: | Re: Optimization of PHP Code | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277051@lists.php.net to get a copy of this message | ||
On Fri, 2008-07-18 at 20:32 +0300, Sancar Saran wrote:
> On Friday 18 July 2008 18:43:43 Robert Cummings 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.
> >
> > Cheers,
> > Rob.
> > --
> > http://www.interjinn.com
> > Application and Templating Framework for PHP
>
> First of all, please remember php is template language for html.
>
> And
>
> template.php
>
> <div><?=$template['foo']?></div>
>
> page.php
> <?php
>
> $template['foo']= 'bar';
>
> include('teplate.php');
> ?>
>
> we can use this directly as template and if we got opcode cache (like APC),
> we can store entire template file in the memory, no parsing overhead, no
> function call, absolute noting, direct output from memory.
>
> Did you got anything better ?
Yes, see my post to Eric.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP