Re: cvs: php-src(PHP_5_3) / NEWS
| From: | Lars Strojny | Date: | Thu, 20 Mar 2008 23:10:30 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_3) / NEWS | ||
| References: | 1 2 3 4 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-49290@lists.php.net to get a copy of this message | ||
Hi Marcus,
Am Donnerstag, den 20.03.2008, 21:59 +0100 schrieb Marcus Boerger:
[...]
> so instead promoting code fixes we are promoting bad style, is that what
> you want? I am strongly against this! Please revert and ask for once.
The idea was more or less the following (extremely simplified):
index.php:
$title = 'My Title';
$text = 'This is a bit of text to be passed to the template';
ini_set('short_open_tag', 'on');
require_once 'path/to/my/template.phtml';
ini_set('short_open_tag', 'off');
template.phtml:
<h1><?=escape($title)?></h1>
<p><?=escape($text)?></p>
I feel that this is a perfectly valid use-case.
cu, Lars
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc