Personaly, i use the space technique after ?> or <?php echo 'foo' . PHP_EOL ?>

All those topics about how to deal with end of lines are funny, would
be interesting to know the real best way + crossplatform to deal with
it.

[MA]Pascal

On Thu, May 21, 2009 at 20:04, isleshocky77 <[email protected]> wrote:
>
> Good to know. I think that this maybe should be documented. I think
> I'll be using it for now on.
>
> --
> Stephen Ostrow <[email protected]>
>
> On May 16, 3:09 am, Fabien Potencier <fabien.potenc...@symfony-
> project.com> wrote:
>> No, it is an old shortcut function that can be useful when you embed PHP
>> inside a yaml string:
>>
>> foo: <?php echo 'foo' ?>
>> bar: baz
>>
>> The previous snippet won't work because you need to add a \n at the end:
>>
>> foo: <?php echo 'foo'."\n" ?>
>> bar: baz
>>
>> or
>>
>> foo: <?php echoln('foo') ?>
>> bar: baz
>>
>> So, for BC, we cannot remove it, even if I don't document it anymore.
>>
>> Fabien
>>
>> --
>> Fabien Potencier
>> Sensio CEO - symfony lead developer
>> sensiolabs.com | symfony-project.org | fabien.potencier.org
>> Tél: +33 1 40 99 80 80
>>
>> Kris Wallsmith wrote:
>> > There is a function defined at the bottom of the sfYaml file, echoln,
>> > that does not appear to be used anywhere in the YAML component. Can this
>> > function be removed?
>>
>> > Kris
>>
>> > --
>>
>> > *Kris Wallsmith* | Community Manager
>> > [email protected]
>> > <mailto:[email protected]>
>> > Portland, Oregon USA
>>
>> >http://twitter.com/kriswallsmith
> >
>



-- 
Pascal

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to