Re: cvs: php-src(PHP_5_3) / NEWS

From: Date: Fri, 21 Mar 2008 12:36:44 +0000
Subject: Re: cvs: php-src(PHP_5_3) / NEWS
References: 1 2 3 4 5  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-49310@lists.php.net to get a copy of this message
Hello Lars, Friday, March 21, 2008, 12:10:30 AM, you wrote: > 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. Generally the PHP way is to be more precise and don't get overexcited about ways to reduce keystrokes. So you would use '<?php echo' instead of '<?='. Best regards, Marcus

« previous php.cvs (#49310) next »