Skip to content

Update views.rst#1501

Closed
oldskool wants to merge 1 commit intocakephp:3.0from
oldskool:patch-2
Closed

Update views.rst#1501
oldskool wants to merge 1 commit intocakephp:3.0from
oldskool:patch-2

Conversation

@oldskool
Copy link
Contributor

Dropped short tag echo notation.

  1. It's used inconsistently
  2. It adds a dependency on the server's php.ini to have short_tags set to on. Just echoing everything makes sure it works on every server, regardless of it's configuration.

Dropped short tag echo notation.

1. It's used inconsistently
2. It adds a dependency on the server's php.ini to have `short_tags` set to on. Just echo'ing everything makes sure it works on every server, regardsless of it's configuration.
@dereuromark dereuromark added this to the 3.0 milestone Jul 20, 2014
@dereuromark
Copy link
Member

It adds a dependency on the server's php.ini to have short_tags set to on

Not for PHP5.4+ see http://php.net/manual/en/ini.core.php#ini.short-open-tag - and therefore in Cake3.0+

We cannot apply this patch without changing the official coding standards on this one, though. And they state that short tags are used for HTML inline PHP output in the view layer.

@ADmad
Copy link
Member

ADmad commented Jul 20, 2014

It's used inconsistently

If you find an inconsistency please send a PR to update to short echo tag.

@ADmad ADmad closed this Jul 20, 2014
@oldskool
Copy link
Contributor Author

@dereuromark Ah, didn't know they changed that. Interesting, thanks for sharing the info and link :-)
@ADmad Cool, I'll update the inconsistencies.

@dereuromark
Copy link
Member

Refs cakephp/cakephp#2596

@oldskool oldskool deleted the patch-2 branch October 14, 2014 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants