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

Reply via email to