Welcome Guest, Not a member yet? Register   Sign In
Short Open Tags
#1

For those of us new to CI and who wish to use it with 'best practices', it would be helpful to have consistent guidance regarding 'short open tags' .
The CI PHP Style Guide says not to use them, but in Alternate PHP Syntax for View Files it is recommended to use "short tag echo statements".
This issue is discussed in other forums, but I am curious as to the latest thinking on this.
Thanks.
Reply
#2

There's a difference between the two ...

<? depends on an INI setting
<?= is always available since PHP 5.4
Reply
#3

The reason they say not to use short tags is because it can cause conflict with the xml open tag.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB