I have the following code. Checks if the user is logged in or not. When $ is_logged_in is not set or False, I load the message view. Unfortunately, at the same time, the system loads limited content. So I used the die () function, and now only a blank page is displayed.
What can I do to download only the message view when the user is not logged in? Thanks.
if(!isset($is_logged_in) OR $is_logged_in == FALSE) { $data['main_content'] = 'not_logged_in'; $data['data'] = ''; $this->load->view('includes/template',$data); die(); }
source share