Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions en/contributing/cakephp-coding-conventions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ Short Echo

The short echo should be used in view files in place of ``<?php echo``. It should be
immediately followed by a single space, the variable or function value to ``echo``, a
single space, and the php closing tag.
single space, and the php closing tag::

// wrong = semicolon, no spaces
<?=$name;?>
<td><?=$name;?></td>

// good = spaces, no semicolon
<?= $name ?>
<td><?= $name ?></td>

As of PHP 5.4 the short echo tag (``<?=``) is no longer to be consider a 'short tag'
is always available regardless of the ``short_open_tag`` ini directive.
Expand Down