{"action":"closed","issue":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/12505","repository_url":"https://api.github.com/repos/phalcon/cphalcon","labels_url":"https://api.github.com/repos/phalcon/cphalcon/issues/12505/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/12505/comments","events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/12505/events","html_url":"https://github.com/phalcon/cphalcon/issues/12505","id":197497973,"number":12505,"title":"View is not displayed","user":{"login":"googlle","id":2455916,"avatar_url":"https://avatars.githubusercontent.com/u/2455916?v=3","gravatar_id":"","url":"https://api.github.com/users/googlle","html_url":"https://github.com/googlle","followers_url":"https://api.github.com/users/googlle/followers","following_url":"https://api.github.com/users/googlle/following{/other_user}","gists_url":"https://api.github.com/users/googlle/gists{/gist_id}","starred_url":"https://api.github.com/users/googlle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlle/subscriptions","organizations_url":"https://api.github.com/users/googlle/orgs","repos_url":"https://api.github.com/users/googlle/repos","events_url":"https://api.github.com/users/googlle/events{/privacy}","received_events_url":"https://api.github.com/users/googlle/received_events","type":"User","site_admin":false},"labels":[{"id":27846498,"url":"https://api.github.com/repos/phalcon/cphalcon/labels/Not%20a%20bug","name":"Not a bug","color":"02e10c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-25T11:51:23Z","updated_at":"2016-12-25T13:12:54Z","closed_at":"2016-12-25T13:12:54Z","body":"Hello. Installed Phalcon 3.0.3 on Ubuntu 16.04 with php7. But the view of the file is not displayed, only the layout\r\n\r\n```php\r\nclass Module implements ModuleDefinitionInterface\r\n{\r\n    public function registerServices(DiInterface $di)\r\n    {\r\n        /**\r\n         * Setting up the view component\r\n         */\r\n        $di->setShared('view', function () {\r\n            $view = new View();\r\n            $view->setViewsDir(__DIR__ . '/view/main/');\r\n            $view->setLayoutsDir('../layout/');\r\n            $view->setLayout('index');\r\n\r\n            return $view;\r\n        });\r\n    }\r\n}\r\n```\r\n\r\nAlso I tried, but it doesn't work\r\n```php\r\n$view->setViewsDir(__DIR__ . '/view/main/');\r\n$view->setLayoutsDir(__DIR__ . '/view/main/layouts/');"}}
{"actor":{"display_login":"sergeyklay"}}