{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6577","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6577/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6577/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6577/events","html_url":"https://github.com/cakephp/cakephp/issues/6577","id":77337558,"number":6577,"title":"Plugin naming problem","user":{"login":"mataw","id":3164256,"avatar_url":"https://avatars.githubusercontent.com/u/3164256?v=3","gravatar_id":"","url":"https://api.github.com/users/mataw","html_url":"https://github.com/mataw","followers_url":"https://api.github.com/users/mataw/followers","following_url":"https://api.github.com/users/mataw/following{/other_user}","gists_url":"https://api.github.com/users/mataw/gists{/gist_id}","starred_url":"https://api.github.com/users/mataw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mataw/subscriptions","organizations_url":"https://api.github.com/users/mataw/orgs","repos_url":"https://api.github.com/users/mataw/repos","events_url":"https://api.github.com/users/mataw/events{/privacy}","received_events_url":"https://api.github.com/users/mataw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/routing","name":"routing","color":"FFFFFF"}],"state":"open","locked":false,"assignee":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/40","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.5","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/40/labels","id":1101248,"number":40,"title":"3.0.5","description":"Bugfixes and optimizations for 3.0.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":44,"state":"open","created_at":"2015-05-08T01:49:40Z","updated_at":"2015-05-17T17:44:55Z","due_on":"2015-05-24T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-05-17T16:00:40Z","updated_at":"2015-05-17T17:49:30Z","closed_at":null,"body":"Hello.\r\n\r\nI want to create plugin which have same name like controler in it. For example i want plugin with name **Users** (for managin users ;) and in it will be controllers for **Users** and **SocialProfiles**....\r\n\r\n### my routing file\r\n```php\r\n<?php\r\nuse Cake\\Routing\\Router;\r\n\r\nRouter::plugin('Users', function ($routes) {\r\n    $routes->fallbacks('InflectedRoute');\r\n});\r\n```\r\n### Plugins/Users/src/controller/UsersController.php\r\n```php\r\n<?php\r\nnamespace Users\\Controller;\r\n\r\nuse Users\\Controller\\AppController;\r\n\r\n/**\r\n * Users Controller\r\n *\r\n * @property \\Users\\Model\\Table\\UsersTable $Users\r\n */\r\nclass UsersController extends AppController\r\n{\r\n```\r\n\r\nevery time i gettin error **Error: Create the class UsersController below in file: D:\\bakery\\cerise3/plugins/User/src\\Controller\\UsersController.php**\r\n\r\n### from documentation\r\nWhen loading plugins, the plugin name used should match the namespace. For example you have a plugin with top level namespace Users you would load it using:\r\n```php\r\nPlugin::load('User');\r\n```\r\ni tried create plugin with name **User** but still getting same error, but what is interesting, for example plugin **Taxonomy** and controler *taxonomies* working (serveraddress:port/taxonomy/taxonomies)...\r\n### working\r\nTaxonomy.taxonomies (or any other in-plugin controler)\r\n### not working\r\nUsers.users, User.users\r\nMenus.menus\r\n\r\n*btw in cakephp 2.x wasn't problem.*\r\n\r\nAny options?"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/102826889","html_url":"https://github.com/cakephp/cakephp/issues/6577#issuecomment-102826889","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6577","id":102826889,"user":{"login":"mataw","id":3164256,"avatar_url":"https://avatars.githubusercontent.com/u/3164256?v=3","gravatar_id":"","url":"https://api.github.com/users/mataw","html_url":"https://github.com/mataw","followers_url":"https://api.github.com/users/mataw/followers","following_url":"https://api.github.com/users/mataw/following{/other_user}","gists_url":"https://api.github.com/users/mataw/gists{/gist_id}","starred_url":"https://api.github.com/users/mataw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mataw/subscriptions","organizations_url":"https://api.github.com/users/mataw/orgs","repos_url":"https://api.github.com/users/mataw/repos","events_url":"https://api.github.com/users/mataw/events{/privacy}","received_events_url":"https://api.github.com/users/mataw/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T17:49:30Z","updated_at":"2015-05-17T17:49:30Z","body":"OK.... its working now but i dont understand :/\r\n\r\ncake bake plugin Users ... last questions was if i wan to make change at composer.json... \r\n\r\ni deleted all plugin engenerated it again with answer yes and it's working now..."}}