{"action":"opened","number":6233,"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/6233","id":32361474,"html_url":"https://github.com/cakephp/cakephp/pull/6233","diff_url":"https://github.com/cakephp/cakephp/pull/6233.diff","patch_url":"https://github.com/cakephp/cakephp/pull/6233.patch","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6233","number":6233,"state":"open","locked":false,"title":"3.0 - Autoswitch elements to prefix path","user":{"login":"HavokInspiration","id":5243386,"avatar_url":"https://avatars.githubusercontent.com/u/5243386?v=3","gravatar_id":"","url":"https://api.github.com/users/HavokInspiration","html_url":"https://github.com/HavokInspiration","followers_url":"https://api.github.com/users/HavokInspiration/followers","following_url":"https://api.github.com/users/HavokInspiration/following{/other_user}","gists_url":"https://api.github.com/users/HavokInspiration/gists{/gist_id}","starred_url":"https://api.github.com/users/HavokInspiration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavokInspiration/subscriptions","organizations_url":"https://api.github.com/users/HavokInspiration/orgs","repos_url":"https://api.github.com/users/HavokInspiration/repos","events_url":"https://api.github.com/users/HavokInspiration/events{/privacy}","received_events_url":"https://api.github.com/users/HavokInspiration/received_events","type":"User","site_admin":false},"body":"As per the comments on the original PR, I removed the string echoing in the test elements files (also on the ones that were not part of the changes at first).\r\nI did most part of the doc, will submit a PR shortly.\r\n\r\n------------------\r\nAs Layouts and action view files already switch to a prefix path if available (src/Template/{Prefix}/Layout/my_layout.ctp for instance), elements should too.\r\nThis PR implements this behavior.\r\nIt should be noted that this also autoswitch Flash elements.\r\n\r\nMore details on #4320 and #6204\r\n","created_at":"2015-03-31T20:19:40Z","updated_at":"2015-03-31T20:19:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cakephp/cakephp/pulls/6233/commits","review_comments_url":"https://api.github.com/repos/cakephp/cakephp/pulls/6233/comments","review_comment_url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6233/comments","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/4f577c0510fbf53a01e6c268686cc16f1867cd14","head":{"label":"HavokInspiration:3.0-prefix-elements","ref":"3.0-prefix-elements","sha":"4f577c0510fbf53a01e6c268686cc16f1867cd14","user":{"login":"HavokInspiration","id":5243386,"avatar_url":"https://avatars.githubusercontent.com/u/5243386?v=3","gravatar_id":"","url":"https://api.github.com/users/HavokInspiration","html_url":"https://github.com/HavokInspiration","followers_url":"https://api.github.com/users/HavokInspiration/followers","following_url":"https://api.github.com/users/HavokInspiration/following{/other_user}","gists_url":"https://api.github.com/users/HavokInspiration/gists{/gist_id}","starred_url":"https://api.github.com/users/HavokInspiration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavokInspiration/subscriptions","organizations_url":"https://api.github.com/users/HavokInspiration/orgs","repos_url":"https://api.github.com/users/HavokInspiration/repos","events_url":"https://api.github.com/users/HavokInspiration/events{/privacy}","received_events_url":"https://api.github.com/users/HavokInspiration/received_events","type":"User","site_admin":false},"repo":{"id":23718050,"name":"cakephp","full_name":"HavokInspiration/cakephp","owner":{"login":"HavokInspiration","id":5243386,"avatar_url":"https://avatars.githubusercontent.com/u/5243386?v=3","gravatar_id":"","url":"https://api.github.com/users/HavokInspiration","html_url":"https://github.com/HavokInspiration","followers_url":"https://api.github.com/users/HavokInspiration/followers","following_url":"https://api.github.com/users/HavokInspiration/following{/other_user}","gists_url":"https://api.github.com/users/HavokInspiration/gists{/gist_id}","starred_url":"https://api.github.com/users/HavokInspiration/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavokInspiration/subscriptions","organizations_url":"https://api.github.com/users/HavokInspiration/orgs","repos_url":"https://api.github.com/users/HavokInspiration/repos","events_url":"https://api.github.com/users/HavokInspiration/events{/privacy}","received_events_url":"https://api.github.com/users/HavokInspiration/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HavokInspiration/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":true,"url":"https://api.github.com/repos/HavokInspiration/cakephp","forks_url":"https://api.github.com/repos/HavokInspiration/cakephp/forks","keys_url":"https://api.github.com/repos/HavokInspiration/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HavokInspiration/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HavokInspiration/cakephp/teams","hooks_url":"https://api.github.com/repos/HavokInspiration/cakephp/hooks","issue_events_url":"https://api.github.com/repos/HavokInspiration/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/HavokInspiration/cakephp/events","assignees_url":"https://api.github.com/repos/HavokInspiration/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/HavokInspiration/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/HavokInspiration/cakephp/tags","blobs_url":"https://api.github.com/repos/HavokInspiration/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HavokInspiration/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HavokInspiration/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/HavokInspiration/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HavokInspiration/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/HavokInspiration/cakephp/languages","stargazers_url":"https://api.github.com/repos/HavokInspiration/cakephp/stargazers","contributors_url":"https://api.github.com/repos/HavokInspiration/cakephp/contributors","subscribers_url":"https://api.github.com/repos/HavokInspiration/cakephp/subscribers","subscription_url":"https://api.github.com/repos/HavokInspiration/cakephp/subscription","commits_url":"https://api.github.com/repos/HavokInspiration/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/HavokInspiration/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/HavokInspiration/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/HavokInspiration/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/HavokInspiration/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/HavokInspiration/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HavokInspiration/cakephp/merges","archive_url":"https://api.github.com/repos/HavokInspiration/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HavokInspiration/cakephp/downloads","issues_url":"https://api.github.com/repos/HavokInspiration/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/HavokInspiration/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/HavokInspiration/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/HavokInspiration/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HavokInspiration/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/HavokInspiration/cakephp/releases{/id}","created_at":"2014-09-05T20:55:13Z","updated_at":"2015-03-31T19:18:04Z","pushed_at":"2015-03-31T20:17:56Z","git_url":"git://github.com/HavokInspiration/cakephp.git","ssh_url":"git@github.com:HavokInspiration/cakephp.git","clone_url":"https://github.com/HavokInspiration/cakephp.git","svn_url":"https://github.com/HavokInspiration/cakephp","homepage":"http://cakephp.org","size":69849,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"c8a2cdf8a37d115afc61dfe7264124d2ec3a0446","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":656494,"name":"cakephp","full_name":"cakephp/cakephp","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":false,"url":"https://api.github.com/repos/cakephp/cakephp","forks_url":"https://api.github.com/repos/cakephp/cakephp/forks","keys_url":"https://api.github.com/repos/cakephp/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/cakephp/teams","hooks_url":"https://api.github.com/repos/cakephp/cakephp/hooks","issue_events_url":"https://api.github.com/repos/cakephp/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/cakephp/events","assignees_url":"https://api.github.com/repos/cakephp/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/cakephp/tags","blobs_url":"https://api.github.com/repos/cakephp/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/cakephp/languages","stargazers_url":"https://api.github.com/repos/cakephp/cakephp/stargazers","contributors_url":"https://api.github.com/repos/cakephp/cakephp/contributors","subscribers_url":"https://api.github.com/repos/cakephp/cakephp/subscribers","subscription_url":"https://api.github.com/repos/cakephp/cakephp/subscription","commits_url":"https://api.github.com/repos/cakephp/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/cakephp/merges","archive_url":"https://api.github.com/repos/cakephp/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/cakephp/downloads","issues_url":"https://api.github.com/repos/cakephp/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/cakephp/releases{/id}","created_at":"2010-05-08T14:38:22Z","updated_at":"2015-03-31T20:16:11Z","pushed_at":"2015-03-31T20:16:12Z","git_url":"git://github.com/cakephp/cakephp.git","ssh_url":"git@github.com:cakephp/cakephp.git","clone_url":"https://github.com/cakephp/cakephp.git","svn_url":"https://github.com/cakephp/cakephp","homepage":"http://cakephp.org","size":160081,"stargazers_count":5638,"watchers_count":5638,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2536,"mirror_url":null,"open_issues_count":134,"forks":2536,"open_issues":134,"watchers":5638,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/6233"},"html":{"href":"https://github.com/cakephp/cakephp/pull/6233"},"issue":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/6233"},"comments":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/6233/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/6233/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/6233/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/cakephp/statuses/4f577c0510fbf53a01e6c268686cc16f1867cd14"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":121,"deletions":17,"changed_files":14}}