{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/9721","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/9721/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/9721/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/9721/events","html_url":"https://github.com/cakephp/cakephp/issues/9721","id":187995267,"number":9721,"title":"Add CellView","user":{"login":"ayman-alkom","id":2862528,"avatar_url":"https://avatars.githubusercontent.com/u/2862528?v=3","gravatar_id":"","url":"https://api.github.com/users/ayman-alkom","html_url":"https://github.com/ayman-alkom","followers_url":"https://api.github.com/users/ayman-alkom/followers","following_url":"https://api.github.com/users/ayman-alkom/following{/other_user}","gists_url":"https://api.github.com/users/ayman-alkom/gists{/gist_id}","starred_url":"https://api.github.com/users/ayman-alkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayman-alkom/subscriptions","organizations_url":"https://api.github.com/users/ayman-alkom/orgs","repos_url":"https://api.github.com/users/ayman-alkom/repos","events_url":"https://api.github.com/users/ayman-alkom/events{/privacy}","received_events_url":"https://api.github.com/users/ayman-alkom/received_events","type":"User","site_admin":false},"labels":[{"id":60504544,"url":"https://api.github.com/repos/cakephp/cakephp/labels/Defect","name":"Defect","color":"f7c6c7","default":false},{"id":60504934,"url":"https://api.github.com/repos/cakephp/cakephp/labels/view","name":"view","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/111","html_url":"https://github.com/cakephp/cakephp/milestones/3.3.9","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/111/labels","id":2117772,"number":111,"title":"3.3.9","description":"Bugfixes and minor features for 3.3.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":34,"closed_issues":5,"state":"open","created_at":"2016-11-07T02:36:42Z","updated_at":"2016-11-08T13:54:50Z","due_on":"2016-11-20T00:00:00Z","closed_at":null},"comments":14,"created_at":"2016-11-08T13:45:04Z","updated_at":"2016-11-08T14:31:09Z","closed_at":null,"body":"* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 3.3.7\r\n\r\n### What you did\r\nI just set the view layout in the initialize function as this:\r\n\r\n````php\r\nclass AppView extends View\r\n{\r\n    public function initialize()\r\n    {\r\n        parent::initialize();\r\n        $this->layout = 'default';\r\n    }\r\n}\r\n````\r\nand I have a none edited yet **cell** generated by bake, and displayed it as the following:\r\n\r\n```php\r\n<?= $this->cell('Branches') ?>\r\n```\r\n\r\n### What happened\r\nThe cell took the layout and made an infinity loop, then I get error about the allowed space memory.\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/259151031","html_url":"https://github.com/cakephp/cakephp/issues/9721#issuecomment-259151031","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/9721","id":259151031,"user":{"login":"thinkingmedia","id":551022,"avatar_url":"https://avatars.githubusercontent.com/u/551022?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkingmedia","html_url":"https://github.com/thinkingmedia","followers_url":"https://api.github.com/users/thinkingmedia/followers","following_url":"https://api.github.com/users/thinkingmedia/following{/other_user}","gists_url":"https://api.github.com/users/thinkingmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkingmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkingmedia/subscriptions","organizations_url":"https://api.github.com/users/thinkingmedia/orgs","repos_url":"https://api.github.com/users/thinkingmedia/repos","events_url":"https://api.github.com/users/thinkingmedia/events{/privacy}","received_events_url":"https://api.github.com/users/thinkingmedia/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T14:31:09Z","updated_at":"2016-11-08T14:31:09Z","body":"```\r\nclass AppView extends View\r\n{\r\n    public function initialize()\r\n    {\r\n        $this->layout = 'default';\r\n    }\r\n}\r\n```\r\n\r\nThe above is the source of the problem. That is overriding the layout for the view.\r\n\r\nTo fix this. I would change the core to throw an exception if layout is modified outside of context. That's something I don't want to do.\r\n\r\n"}}
{"actor":{"display_login":"thinkingmedia"}}