Hi,

2012/4/13 David Muir <davidkm...@gmail.com>:
> On 13/04/12 10:02, Arvids Godjuks wrote:
>> It will never get adopted, too many legacy stuff, to many external tools.
>> And php native templates? I dont neet any twig, smarty or any other stuff.
>> And guess what - most template engines cache compiled templates, and they
>> are - ta-daa - PHP EMBEDDED IN HTML CODE!
>>
>
> I was wondering when someone was going to point that out. ;-)
>
> David

I've said "PHP without templating is not PHP", too. :)

I would like to save current code as much as it can, so I prefer
php.ini switch over other method.

If I exclude current code, then introducing script only include will be
preferred one. I preferred dedicated statement for it though.

include
include_once
require
require_once
script
script_once

something like this. And for CLI switch, of course.

Framework developers can use define script/script_once

function script($file) {
  require($file);
}

function script_once($file) {
  require_once($file);
}

like this for compatibility.

Regards,

--
Yasuo Ohgaki

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to