{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/1000","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/1000/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/1000/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/1000/events","html_url":"https://github.com/bcit-ci/CodeIgniter4/issues/1000","id":317524929,"number":1000,"title":"[Help] setVar('body', $view, 'raw')","user":{"login":"BI7PRK","id":24989210,"avatar_url":"https://avatars0.githubusercontent.com/u/24989210?v=4","gravatar_id":"","url":"https://api.github.com/users/BI7PRK","html_url":"https://github.com/BI7PRK","followers_url":"https://api.github.com/users/BI7PRK/followers","following_url":"https://api.github.com/users/BI7PRK/following{/other_user}","gists_url":"https://api.github.com/users/BI7PRK/gists{/gist_id}","starred_url":"https://api.github.com/users/BI7PRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BI7PRK/subscriptions","organizations_url":"https://api.github.com/users/BI7PRK/orgs","repos_url":"https://api.github.com/users/BI7PRK/repos","events_url":"https://api.github.com/users/BI7PRK/events{/privacy}","received_events_url":"https://api.github.com/users/BI7PRK/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-25T08:20:59Z","updated_at":"2018-04-26T02:49:43Z","closed_at":"2018-04-26T02:49:43Z","author_association":"NONE","body":"I created a account on forums, but i donnt know why cannt post thread. i have a problem:\r\n\r\n### Layout file: ###\r\n\r\n```HTML\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n  <head>\r\n    <title>test-{title}</title>\r\n  <style> \r\n    {styles}\r\n  </style>  \r\n  </head>\r\n  <body>\r\n      <div class=\"container-fluid\">\r\n        {body}\r\n      </div>\r\n    <script>\r\n     {footscript}\r\n    </script>    \r\n  </body>\r\n</html>\r\n```\r\n\r\n### View code: ###\r\n```HTML\r\n<div class=\"wrap\">\r\n<ul>\r\n\t\t\t\t<?php foreach ($append as $item): ?>\r\n\t\t\t\t<li><?=$item['id'] .'='.$item['name']  ?></li>\r\n\t\t\t\t<?php endforeach;?>\r\n\t\t\t</ul>\r\n</div>\r\n```\r\n### Controller code: ###\r\n```PHP\r\n$append = ['append' => [\r\n\t['id' => 1, 'name' => 'fsa' ],\r\n\t['id' => 2, 'name' => 'fasdf2' ],\r\n\t['id' => 3, 'name' => 'fsda3' ]\r\n\r\n]];\r\n$bodyview = view('welcome', $append);\r\n\r\n\r\n$tpldata = [\r\n\t'title'=> 'page title', \r\n\t'styles' =>'.div{ font-size:1.1em; }', \r\n\t'footscript' =>'//var b = 1;', \r\n\t'envir' => ENVIRONMENT \r\n];\r\n\r\n$parser = \\Config\\Services::parser();\r\n\r\necho $parser->setData($tpldata)\r\n\t-> setVar('body', $bodyview, 'raw')\r\n\t-> render('layout/default');\r\n```\r\n\r\n------------------------------------\r\n### But... page body is: ####\r\n![default](https://user-images.githubusercontent.com/24989210/39233883-3cb5acee-48a4-11e8-8399-6ed7f8bb2e66.png)\r\n\r\n## what should I do? thank you very much. ## \r\n"},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/comments/384496259","html_url":"https://github.com/bcit-ci/CodeIgniter4/issues/1000#issuecomment-384496259","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter4/issues/1000","id":384496259,"user":{"login":"jim-parry","id":3203951,"avatar_url":"https://avatars0.githubusercontent.com/u/3203951?v=4","gravatar_id":"","url":"https://api.github.com/users/jim-parry","html_url":"https://github.com/jim-parry","followers_url":"https://api.github.com/users/jim-parry/followers","following_url":"https://api.github.com/users/jim-parry/following{/other_user}","gists_url":"https://api.github.com/users/jim-parry/gists{/gist_id}","starred_url":"https://api.github.com/users/jim-parry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jim-parry/subscriptions","organizations_url":"https://api.github.com/users/jim-parry/orgs","repos_url":"https://api.github.com/users/jim-parry/repos","events_url":"https://api.github.com/users/jim-parry/events{/privacy}","received_events_url":"https://api.github.com/users/jim-parry/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T02:49:43Z","updated_at":"2018-04-26T02:49:43Z","author_association":"COLLABORATOR","body":"Inside any of the subforums, on the far right of the pagination toolbar, there is a \"Start new topic\" button."}}
{"actor":{"display_login":"jim-parry"}}