Welcome Guest, Not a member yet? Register   Sign In
CI 1.7: Will automatic short tags be deprecated?
#1

[eluser]MMacdonald[/eluser]
1.7 is a fantastic release that has fixed my 2 biggest annoyances. But I noticed a new style guide, which appears to drop hints that in the future we may see more "approved" 3rd party libraries. On the subject of short tags the style guide says the following:

Quote:Short Open Tags

Always use full PHP opening tags, in case a server does not have short_open_tag enabled.

INCORRECT:
<? echo $foo; ?>

<?=$foo?>

CORRECT:
<?php echo $foo; ?>

However, the alternative PHP syntax page still suggests support for automatic short tags in those cases where the server does not have short_open_tag enabled. This seems an inconsistent message.

My question is: will short tag support be deprecated in future versions? I personally like them, because they keep the code looking cleaner, but if they're generally considered bad practice, I'll welcome guidance on this.


Messages In This Thread
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 04:18 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 04:31 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 04:47 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 09:05 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 02:07 PM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 02:20 PM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-25-2008, 04:12 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-25-2008, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB