Re: Optimization of PHP Code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?

Regards

Sancar



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux