{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2-app-advanced/issues/34","labels_url":"https://api.github.com/repos/yiisoft/yii2-app-advanced/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2-app-advanced/issues/34/comments","events_url":"https://api.github.com/repos/yiisoft/yii2-app-advanced/issues/34/events","html_url":"https://github.com/yiisoft/yii2-app-advanced/issues/34","id":82334115,"number":34,"title":"themeing module not working?","user":{"login":"hooman-pro","id":11981070,"avatar_url":"https://avatars.githubusercontent.com/u/11981070?v=3","gravatar_id":"","url":"https://api.github.com/users/hooman-pro","html_url":"https://github.com/hooman-pro","followers_url":"https://api.github.com/users/hooman-pro/followers","following_url":"https://api.github.com/users/hooman-pro/following{/other_user}","gists_url":"https://api.github.com/users/hooman-pro/gists{/gist_id}","starred_url":"https://api.github.com/users/hooman-pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooman-pro/subscriptions","organizations_url":"https://api.github.com/users/hooman-pro/orgs","repos_url":"https://api.github.com/users/hooman-pro/repos","events_url":"https://api.github.com/users/hooman-pro/events{/privacy}","received_events_url":"https://api.github.com/users/hooman-pro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-29T08:39:01Z","updated_at":"2015-05-29T18:52:24Z","closed_at":null,"body":"Hi,\r\nin basic application theming modules work currectly for me by configing following: http://www.yiiframework.com/doc-2.0/guide-output-theming.html#theming-modules\r\n\r\nbut when i setup that configuration in advanced application it's dosent work. my config in frontend:\r\n'view' => [\r\n            'theme' => [\r\n                'pathMap' => [\r\n                    '@frontend/views' => '@themes/test/frontend/views',\r\n                    '@frontend/modules' => '@themes/test/frontend/modules',\r\n                ],\r\n            ],\r\n        ],\r\n\r\nfirst one : '@frontend/views' => '@themes/test/frontend/views', work currectly but second : '@frontend/modules' => '@themes/test/frontend/modules', that's for module dosen't work.\r\nAm i done some thing worng? or it is a bug?"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2-app-advanced/issues/comments/106902353","html_url":"https://github.com/yiisoft/yii2-app-advanced/issues/34#issuecomment-106902353","issue_url":"https://api.github.com/repos/yiisoft/yii2-app-advanced/issues/34","id":106902353,"user":{"login":"hooman-pro","id":11981070,"avatar_url":"https://avatars.githubusercontent.com/u/11981070?v=3","gravatar_id":"","url":"https://api.github.com/users/hooman-pro","html_url":"https://github.com/hooman-pro","followers_url":"https://api.github.com/users/hooman-pro/followers","following_url":"https://api.github.com/users/hooman-pro/following{/other_user}","gists_url":"https://api.github.com/users/hooman-pro/gists{/gist_id}","starred_url":"https://api.github.com/users/hooman-pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooman-pro/subscriptions","organizations_url":"https://api.github.com/users/hooman-pro/orgs","repos_url":"https://api.github.com/users/hooman-pro/repos","events_url":"https://api.github.com/users/hooman-pro/events{/privacy}","received_events_url":"https://api.github.com/users/hooman-pro/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T18:52:24Z","updated_at":"2015-05-29T18:52:24Z","body":"yes, i'm in wrong way, \r\nI was setting a property in model \"isBackend\" and my module controller divide to front end and back end folders. for views I have same folders. and setting view path by this code:\r\n\r\nif ($this->isBackend === true) {\r\n            $this->setViewPath('@modules/' . static::$name . '/views/backend');\r\n            if ($this->controllerNamespace === null) {\r\n                $this->controllerNamespace =  'modules\\\\' . static::$name . '\\controllers\\backend';\r\n            }\r\n            \r\n        } else {\r\n            $this->setViewPath('@modules/' .  static::$name . '/views/frontend');\r\n            if ($this->controllerNamespace === null) {\r\n                $this->controllerNamespace =  'modules\\\\' . static::$name . '\\controllers\\frontend';\r\n            }\r\n        }\r\nnow what should i do to having this structure and them work correctly?"}}