ronknight / InventorySystem

🖥️Create an open-source Inventory Management System using CodeIgniter web framework, Php and MySQL. Original source code from an Online Inventory Management Software found on https://codersfolder.com/2018/02/stock-management-system-v2-codeigniter/.
MIT License
341 stars 143 forks source link

My_controller #8

Open saboortanha opened 4 years ago

saboortanha commented 4 years ago

Hello, Can someone help me understand this in MY_Controller $this->load->view($page, $data); Like I understand that it loads view but not sure what type of data is stored in those to variables $page $data

Here is complete function code public function render_template($page = null, $data = array()) {

    //$this->load->view('admin/include/header',$data);
    $this->load->view('templates/header');
    //$this->load->view('templates/header_menu',$data);
    //$this->load->view('templates/side_menubar',$data);
    $this->load->view($page, $data);
    //$this->load->view('templates/footer',$data);
}

Thank you,