Nađoh ovo u dokumentaciji CodeIgniter, pa sam napokon shvatio odakle trend da se ne zatvara php tag:
Citat:
The PHP closing tag on a PHP document ?> is optional to the PHP parser. However, if used, any whitespace following the closing tag, whether introduced by the developer, user, or an FTP application, can cause unwanted output, PHP errors, or if the latter are suppressed, blank pages. For this reason, all PHP files should OMIT the closing PHP tag, and instead use a comment block to mark the end of file and it's location relative to the application root. This allows you to still identify a file as being complete and not truncated.
|
Znači preporuka Code Igniter je da se ne zatvara PHP tag? Meni to zvuči prilično čudno, iako razlog možda i ima smisla (naročito za brljive koji ne paze).