{"action":"created","issue":{"url":"https://api.github.com/repos/xsanisty/SlimStarter/issues/14","labels_url":"https://api.github.com/repos/xsanisty/SlimStarter/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/xsanisty/SlimStarter/issues/14/comments","events_url":"https://api.github.com/repos/xsanisty/SlimStarter/issues/14/events","html_url":"https://github.com/xsanisty/SlimStarter/issues/14","id":58167864,"number":14,"title":"Folder structure","user":{"login":"rajneeshojha","id":4955600,"avatar_url":"https://avatars.githubusercontent.com/u/4955600?v=3","gravatar_id":"","url":"https://api.github.com/users/rajneeshojha","html_url":"https://github.com/rajneeshojha","followers_url":"https://api.github.com/users/rajneeshojha/followers","following_url":"https://api.github.com/users/rajneeshojha/following{/other_user}","gists_url":"https://api.github.com/users/rajneeshojha/gists{/gist_id}","starred_url":"https://api.github.com/users/rajneeshojha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajneeshojha/subscriptions","organizations_url":"https://api.github.com/users/rajneeshojha/orgs","repos_url":"https://api.github.com/users/rajneeshojha/repos","events_url":"https://api.github.com/users/rajneeshojha/events{/privacy}","received_events_url":"https://api.github.com/users/rajneeshojha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-19T04:55:00Z","updated_at":"2015-02-21T08:23:40Z","closed_at":null,"body":"How to setup the framework structure like every module reside in separate folder so suppose i develop a module to extend my application i just drop that folder somewhere with view, controller,model folders in it and it start working ,no need to put views,model,controller in app folders separately \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xsanisty/SlimStarter/issues/comments/75361863","html_url":"https://github.com/xsanisty/SlimStarter/issues/14#issuecomment-75361863","issue_url":"https://api.github.com/repos/xsanisty/SlimStarter/issues/14","id":75361863,"user":{"login":"ikhsan017","id":1480166,"avatar_url":"https://avatars.githubusercontent.com/u/1480166?v=3","gravatar_id":"","url":"https://api.github.com/users/ikhsan017","html_url":"https://github.com/ikhsan017","followers_url":"https://api.github.com/users/ikhsan017/followers","following_url":"https://api.github.com/users/ikhsan017/following{/other_user}","gists_url":"https://api.github.com/users/ikhsan017/gists{/gist_id}","starred_url":"https://api.github.com/users/ikhsan017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikhsan017/subscriptions","organizations_url":"https://api.github.com/users/ikhsan017/orgs","repos_url":"https://api.github.com/users/ikhsan017/repos","events_url":"https://api.github.com/users/ikhsan017/events{/privacy}","received_events_url":"https://api.github.com/users/ikhsan017/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T08:23:40Z","updated_at":"2015-02-21T08:23:40Z","body":"@rajneeshojha , no need to register model manually, just put it in the proper namespace inside the module dir, and it will be autoloaded\r\n\r\nsay you have Admin module, the directory structure will be like\r\n\r\n```\r\nmodules\r\n|---Admin\r\n|   |---Controller\r\n|   |---Model\r\n|   |   |---SomeModel.php\r\n```\r\n\r\nthen you can use it inside your controller\r\n\r\nAdmin\\Model\\SomeModel.php\r\n```php\r\n<?php\r\n\r\nnamespace Admin\\Model;\r\n\r\nuse Model;\r\n\r\nclass SomeModel extends Model{}\r\n```\r\n\r\nController\r\n```php\r\n...\r\npublic function someMethod(){\r\n    $someModel = \\Admin\\Model\\SomeModel::find(1);\r\n}\r\n...\r\n\r\n```"}}