{"action":"opened","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/11910","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/11910/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/11910/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/11910/events","html_url":"https://github.com/cakephp/cakephp/issues/11910","id":312196617,"number":11910,"title":"Overriding plugin templates, plugin installed via composer","user":{"login":"ivanamat","id":14802779,"avatar_url":"https://avatars3.githubusercontent.com/u/14802779?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanamat","html_url":"https://github.com/ivanamat","followers_url":"https://api.github.com/users/ivanamat/followers","following_url":"https://api.github.com/users/ivanamat/following{/other_user}","gists_url":"https://api.github.com/users/ivanamat/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanamat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanamat/subscriptions","organizations_url":"https://api.github.com/users/ivanamat/orgs","repos_url":"https://api.github.com/users/ivanamat/repos","events_url":"https://api.github.com/users/ivanamat/events{/privacy}","received_events_url":"https://api.github.com/users/ivanamat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-07T10:46:37Z","updated_at":"2018-04-07T10:46:37Z","closed_at":null,"author_association":"NONE","body":"This is a (multiple allowed):\r\n\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 3.5\r\n* Platform and Target: Win, OSX, Linux\r\n\r\n### What happened\r\nIn the [documentation](https://book.cakephp.org/3.0/en/plugins.html#overriding-plugin-templates-from-inside-your-application), where explain how to override plugin template, explain two options, plugins inside plugins folder, and plugins installed via composer. When i try override a plugin template installed vía composer, as described in the manual, it does not work. To override a plugin templates installed via composer, need to do as a plugin inside plugins folder.\r\n\r\n```\r\nsrc/Template/Plugin/ContactManager/Contacts/index.ctp\r\n```\r\nCreating this file would allow you to override **plugins/ContactManager/src/Template/Contacts/index.ctp**.\r\n\r\nIf your plugin is in a composer dependency (i.e. ‘TheVendor/ThePlugin’), the path to the ‘index’ view of the Custom controller will be:\r\n```\r\nsrc/Template/Plugin/TheVendor/ThePlugin/Custom/index.ctp\r\n```\r\n\r\n### What you expected to happen\r\nAs @markstory comment in this [issue](https://github.com/cakephp/docs/issues/5338#issuecomment-379128080):\r\n\r\n> The documentation should be how the code is working\r\n"}}
{"actor":{"display_login":"ivanamat"}}