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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php