{"action":"created","issue":{"url":"https://api.github.com/repos/JasonBaier/ci3-fire-starter/issues/15","labels_url":"https://api.github.com/repos/JasonBaier/ci3-fire-starter/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/JasonBaier/ci3-fire-starter/issues/15/comments","events_url":"https://api.github.com/repos/JasonBaier/ci3-fire-starter/issues/15/events","html_url":"https://github.com/JasonBaier/ci3-fire-starter/issues/15","id":98865026,"number":15,"title":"undefined variable ?","user":{"login":"DeeJaVu","id":1642161,"avatar_url":"https://avatars.githubusercontent.com/u/1642161?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeJaVu","html_url":"https://github.com/DeeJaVu","followers_url":"https://api.github.com/users/DeeJaVu/followers","following_url":"https://api.github.com/users/DeeJaVu/following{/other_user}","gists_url":"https://api.github.com/users/DeeJaVu/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeJaVu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeJaVu/subscriptions","organizations_url":"https://api.github.com/users/DeeJaVu/orgs","repos_url":"https://api.github.com/users/DeeJaVu/repos","events_url":"https://api.github.com/users/DeeJaVu/events{/privacy}","received_events_url":"https://api.github.com/users/DeeJaVu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T00:46:41Z","updated_at":"2015-08-04T01:08:54Z","closed_at":null,"body":"hello first of all thanks for creating this starter kit,\r\nhowever when i create a new controller im getting this error\r\n```php\r\n    Message: Undefined variable: page_header\r\n    \r\n    Filename: default/template.php\r\n    \r\n    Line Number: 76\r\n```\r\n\r\n\r\nmy controller is like this\r\n```php\r\n\r\n\r\n    class Movie extends Public_Controller {\r\n    \r\n    \tpublic function index() {\r\n    \t\t// Check for login\r\n    \t\tif (!$this->session->userdata('logged_in')) {redirect('/');}\r\n    \r\n    \t\t// Build Data for page\r\n    \t\t$header_data['page_title'] = 'Main';\r\n    \r\n    \t\t// load views\r\n    \t\t$data['content'] = $this->load->view('movie/top_menu', $header_data, TRUE);\r\n    \t\t$this->load->view($this->template, $data);\r\n    \t}\r\n    }\r\n```\r\n\r\ncant figure out what i am doing wrong im new in php and codeigniter\r\n"},"comment":{"url":"https://api.github.com/repos/JasonBaier/ci3-fire-starter/issues/comments/127445427","html_url":"https://github.com/JasonBaier/ci3-fire-starter/issues/15#issuecomment-127445427","issue_url":"https://api.github.com/repos/JasonBaier/ci3-fire-starter/issues/15","id":127445427,"user":{"login":"DeeJaVu","id":1642161,"avatar_url":"https://avatars.githubusercontent.com/u/1642161?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeJaVu","html_url":"https://github.com/DeeJaVu","followers_url":"https://api.github.com/users/DeeJaVu/followers","following_url":"https://api.github.com/users/DeeJaVu/following{/other_user}","gists_url":"https://api.github.com/users/DeeJaVu/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeJaVu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeJaVu/subscriptions","organizations_url":"https://api.github.com/users/DeeJaVu/orgs","repos_url":"https://api.github.com/users/DeeJaVu/repos","events_url":"https://api.github.com/users/DeeJaVu/events{/privacy}","received_events_url":"https://api.github.com/users/DeeJaVu/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T01:08:54Z","updated_at":"2015-08-04T01:08:54Z","body":"oh its fixed by changing this\r\n```php\r\n    // Build Data for page\r\n    $header_data['page_title'] = 'Main';\r\n```\r\n\r\n\r\nto this\r\n```php\r\n    // Build Data for page\r\n\t$header_data = array(\r\n\t\t'page_title' => 'Main',\r\n\t\t'page_header' => 'Welcome to CI3 Fire Starter',\r\n\t);\r\n```\r\n\r\nand changed Public_controller to Private_Controller\r\nso i dont need to use\r\n```php\r\nif (!$this->session->userdata('loged_in')) {redirect('/');}\r\n```\r\n\r\nthis kit is amazing thank you soo much"}}