예제 #1
0
 public function __construct()
 {
     parent::__construct();
     //Load the language file for this class
     $this->lang->load('register');
     //Load the config file for this class
     $this->config->load('register');
     //Push js depencancies to current array
     $js = array_push($this->js, 'register', 'bootstrap-select.min', 'main');
     //Prepare the js loop for view
     $this->data['js'] = javaScript($this->js);
     //Set the class for the view, this is bootrap and declared in My_Controller
     $this->data['class'] = $this->class . ' ' . $this->dropdown;
     //So we can use the session data in the view without calling session vars
     $this->data['data'] = $this->session->all_userdata();
     $this->data['areas'] = array('staff' => true, 'stores' => true, 'customers' => true, 'suppliers' => true, 'sub_contractors' => true, 'scheduals' => true, 'work_orders' => true, 'documents' => true, 'contact_book' => true, 'accounts' => true, 'control_panel' => true, 'sites' => true, 'specifications' => true, 'work_orders' => true);
 }