{"action":"created","issue":{"url":"https://api.github.com/repos/nova-framework/framework/issues/773","repository_url":"https://api.github.com/repos/nova-framework/framework","labels_url":"https://api.github.com/repos/nova-framework/framework/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/nova-framework/framework/issues/773/comments","events_url":"https://api.github.com/repos/nova-framework/framework/issues/773/events","html_url":"https://github.com/nova-framework/framework/issues/773","id":150570527,"number":773,"title":"PR 772","user":{"login":"jimgwhit","id":7936192,"avatar_url":"https://avatars.githubusercontent.com/u/7936192?v=3","gravatar_id":"","url":"https://api.github.com/users/jimgwhit","html_url":"https://github.com/jimgwhit","followers_url":"https://api.github.com/users/jimgwhit/followers","following_url":"https://api.github.com/users/jimgwhit/following{/other_user}","gists_url":"https://api.github.com/users/jimgwhit/gists{/gist_id}","starred_url":"https://api.github.com/users/jimgwhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimgwhit/subscriptions","organizations_url":"https://api.github.com/users/jimgwhit/orgs","repos_url":"https://api.github.com/users/jimgwhit/repos","events_url":"https://api.github.com/users/jimgwhit/events{/privacy}","received_events_url":"https://api.github.com/users/jimgwhit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-23T16:09:16Z","updated_at":"2016-04-23T19:06:48Z","closed_at":null,"body":"@LuckyCyborg  and @daveismyname OK in PR #772  you have this now\r\n~~~\r\n$template = Template::make('default', $data, 'Admin');\r\n~~~\r\nHow do I turn THIS:\r\n~~~\r\npublic function index()\r\n    {\r\n        $dogsearch = (isset($_REQUEST['psch']) <> '' ? $_REQUEST['psch'] : \"\");\r\n        Session::set('dogsearch', $dogsearch);\r\n        $dogrows = $this->Dog->dogCount($dogsearch);\r\n        Session::set('dogrows', $dogrows);\r\n        $pages = new HelpersPaginator('10', 'p');\r\n        Session::set('dogpage', $pages->getInstance());\r\n        $pages->setTotal($dogrows);\r\n        $data['pageLinks'] = $pages->pageLinks();\r\n        $data['dogs'] = $this->Dog->getDogs($pages->getLimit2(), $pages->getPerpage(), $dogsearch);\r\n        $viewOutput = View::fetch('ShinyDogs/Index', $data);\r\n        $data['content'] = $viewOutput;\r\n        View::renderTemplate('default', $data);\r\n    }\r\n~~~\r\nInto this with complete example please of converting\r\n~~~\r\n$template = Template::make('default', $data, 'Admin');\r\n~~~\r\nThe pr showed no tutorial on converting fetch to new technique.  \r\nAnd it looks to me like the $data array is passed twice. Once for view and once for template, yet same $data array????? Won't that bog things down??   \r\n\r\nAlso in your \r\n~~~\r\n   View::renderTemplate('default', $data);\r\n~~~\r\nOnly 2 things in parathesis.\r\nBut in your\r\n~~~\r\n$template = Template::make('default', $data, 'Admin')\r\n~~~\r\n3 things in parathesis??  \r\nI have no idea what to do with $template."},"comment":{"url":"https://api.github.com/repos/nova-framework/framework/issues/comments/213807072","html_url":"https://github.com/nova-framework/framework/issues/773#issuecomment-213807072","issue_url":"https://api.github.com/repos/nova-framework/framework/issues/773","id":213807072,"user":{"login":"LuckyCyborg","id":13488485,"avatar_url":"https://avatars.githubusercontent.com/u/13488485?v=3","gravatar_id":"","url":"https://api.github.com/users/LuckyCyborg","html_url":"https://github.com/LuckyCyborg","followers_url":"https://api.github.com/users/LuckyCyborg/followers","following_url":"https://api.github.com/users/LuckyCyborg/following{/other_user}","gists_url":"https://api.github.com/users/LuckyCyborg/gists{/gist_id}","starred_url":"https://api.github.com/users/LuckyCyborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuckyCyborg/subscriptions","organizations_url":"https://api.github.com/users/LuckyCyborg/orgs","repos_url":"https://api.github.com/users/LuckyCyborg/repos","events_url":"https://api.github.com/users/LuckyCyborg/events{/privacy}","received_events_url":"https://api.github.com/users/LuckyCyborg/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T19:06:48Z","updated_at":"2016-04-23T19:06:48Z","body":"What contains this variable, in your opinion?"}}