When I load my application for the first time I get the following error
A PHP Error was encountered
Severity: Notice
Message: Undefined index: user_full_name
Filename: templates/header.php
Line Number: 85
Backtrace:
File: /home/xyz/app/application/views/templates/header.php
Line: 85
Function: _error_handler
Code in view
<? if ($this->session->userdata['user_full_name'] == "" || $this->session->userdata['user_full_name'] == null): ?>
something something
Controller
public function __construct() {
parent::__construct();
$this->load->library('session');
$this->load->model('home_model');
$this->load->model('user_model');
}
Why is this happening. Why do I get an error stating the variable is not recognized
thanks Krish