Welcome Guest, Not a member yet? Register   Sign In
Issue loading function
#1

Hey!

I recently asked about loading a controller within another and after a while realized I was jumping the gun a little (Grateful for the help Smile )! I trying to do the basic route but getting a '404' page not found error code through creating an anchor. Here is the code:

class notifications extends CI_Controller {

    public function index(){
        global $data;
        $data['meta_title'] = "Notification";
        if(empty($_SESSION['w3_user_id'])) {
            redirect('', 'refresh');
        }
        else{
            $data['sidebar'] = 'sidebar_left';
            $data['rightbar'] = 'rightbar';
            $data['page_content'] = 'notification';
            $data['navigation'] = 'home';
            $this->load->model('friend_model');
            $this->load->library('database','session','form_validation','email');
            $this->load->helper('url');
            $data['notification'] = $this->friend_model->get_all_notification();
            $this->load->view('template', $data);
        }
        
    }
    
                public function notify()
    {    
        $this->load->view('notification');        
    }

}

What do I add or subtract within this code to make things work? Thank you for the help!!!


Heart Heart ,
Mekaboo
Reply


Messages In This Thread
Issue loading function - by Mekaboo - 08-14-2019, 07:41 PM
RE: Issue loading function - by ciadmin - 08-14-2019, 09:41 PM
RE: Issue loading function - by Mekaboo - 08-15-2019, 09:53 AM
RE: Issue loading function - by InsiteFX - 08-15-2019, 08:10 AM
RE: Issue loading function - by Mekaboo - 08-15-2019, 09:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB