http://doc.silverstripe.com/doku.php?id=coding-conventions
Quote:
Don’t end them with ?> - if you leave it out, it’s implied and it prevents blank lines from accidentally being outputted when you have newlines after the ?>
I understand this. I use this method all the time with standard PHP includes. But I am unsure when it comes to how SS processes php files.
I mean, should this rule apply to Page Types or DataObject files I create in /mysite/?
Does it apply everywhere an extender or module developer uses PHP? I've always been under the impression, that in roll-your-own php apps, this method should only be used on included php files, not primary pages that a user might view directly. (I may have misunderstood this)
Cheers
Aaron Cooper