{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/2462","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/2462/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/2462/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/2462/events","html_url":"https://github.com/yiisoft/yii2/issues/2462","id":27725489,"number":2462,"title":"configurating theme in runtime","user":{"login":"mitalcoi","id":3224226,"avatar_url":"https://avatars.githubusercontent.com/u/3224226?v=3","gravatar_id":"","url":"https://api.github.com/users/mitalcoi","html_url":"https://github.com/mitalcoi","followers_url":"https://api.github.com/users/mitalcoi/followers","following_url":"https://api.github.com/users/mitalcoi/following{/other_user}","gists_url":"https://api.github.com/users/mitalcoi/gists{/gist_id}","starred_url":"https://api.github.com/users/mitalcoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitalcoi/subscriptions","organizations_url":"https://api.github.com/users/mitalcoi/orgs","repos_url":"https://api.github.com/users/mitalcoi/repos","events_url":"https://api.github.com/users/mitalcoi/events{/privacy}","received_events_url":"https://api.github.com/users/mitalcoi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-02-17T15:16:52Z","updated_at":"2016-02-12T09:10:47Z","closed_at":"2014-02-17T15:37:36Z","body":"How i can configure theme in runtime? i want to dynamycly set pathMap:\r\n```php\r\nYii::$app->view=[\r\n\t\t\t'theme' => [\r\n\t\t\t\t'pathMap' => ['@app/views' => '@webroot/themes/basic'],\r\n\t\t\t]\r\n\t\t];\r\n```\r\nbut got an exception:\r\n```Setting read-only property: yii\\web\\Application::view```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/183244442","html_url":"https://github.com/yiisoft/yii2/issues/2462#issuecomment-183244442","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/2462","id":183244442,"user":{"login":"dixonsatit","id":1027274,"avatar_url":"https://avatars.githubusercontent.com/u/1027274?v=3","gravatar_id":"","url":"https://api.github.com/users/dixonsatit","html_url":"https://github.com/dixonsatit","followers_url":"https://api.github.com/users/dixonsatit/followers","following_url":"https://api.github.com/users/dixonsatit/following{/other_user}","gists_url":"https://api.github.com/users/dixonsatit/gists{/gist_id}","starred_url":"https://api.github.com/users/dixonsatit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dixonsatit/subscriptions","organizations_url":"https://api.github.com/users/dixonsatit/orgs","repos_url":"https://api.github.com/users/dixonsatit/repos","events_url":"https://api.github.com/users/dixonsatit/events{/privacy}","received_events_url":"https://api.github.com/users/dixonsatit/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T09:10:47Z","updated_at":"2016-02-12T09:10:47Z","body":"Yii::$app->view->theme  = Yii::createObject([\r\n          'class' => 'yii\\base\\Theme',\r\n          'pathMap'=>[\r\n                 '@frontend/views' => '@zwin/views'\r\n          ]\r\n      ]);"}}