2015-05-10 47 views
-1

會議之前笨拋出錯誤開始

<? if ($this->session->userdata['user_full_name'] == "" || $this->session->userdata['user_full_name'] == null): ?> 
something something 

控制器

public function __construct() { 

    parent::__construct(); 
    $this->load->library('session'); 
    $this->load->model('home_model'); 
    $this->load->model('user_model');   
} 

這是爲什麼發生。爲什麼我得到一個錯誤,說明變量上面我做了如下改變來糾正錯誤

的變化是無法識別

感謝 Krish

回答

0

正如克萊夫提到這個

<? if ($this->session->userdata['user_full_name'] == "" || $this->session->userdata['user_full_name'] == null): ?> 

<? if (!isset($this->session->userdata['user_full_name'])): ?>