Closed ghost closed 9 years ago
oh its fixed by changing this
// Build Data for page
$header_data['page_title'] = 'Main';
to this
// Build Data for page
$header_data = array(
'page_title' => 'Main',
'page_header' => 'Welcome to CI3 Fire Starter',
);
and changed Public_controller to Private_Controller so i dont need to use
if (!$this->session->userdata('loged_in')) {redirect('/');}
this kit is amazing thank you soo much
Hi @DeeJaVu
If you want to set title and page header, you can use set_title( $title )
and set_page_header( $page_header )
function, like this:
$this->set_title( 'Main' )->set_page_header( 'Welcome to CI3 Fire Starter' );
$data = $this->includes;
or if your title and page header have same text, you just use set_title( $title ); and then pass the variable into views.
// load views
$data['content'] = $this->load->view('movie/top_menu', $data, TRUE);
$this->load->view($this->template, $data);
ohh that makes sense now :) Thanks
hello first of all thanks for creating this starter kit, however when i create a new controller im getting this error
my controller is like this
cant figure out what i am doing wrong im new in php and codeigniter