public function _setting_config() { //Chạy hàm setting_class() để lấy dữ liệu khai báo từ controller $this->setting_class(); $this->_view_custom = !empty($this->setting['view']) && file_exists(APPPATH . 'views/backend/' . $this->setting['view']) ? 'backend/' . $this->setting['view'] . '/' : $this->_view; $this->_title = $this->setting['title']; parent::_setting_config(); }
public function __construct() { parent::__construct(); $this->load->model($this->setting['model'], 'table'); $this->_unique = $this->table->get_unique(); $this->_foreign = $this->table->get_foreign(); $this->_field_search = $this->table->get_field_search(); $this->_display_table['begin_time'] = date('d/m/Y') . ' 00:00:00'; $this->_display_table['end_time'] = date('d/m/Y') . ' 23:59:59'; $display_table = $this->_display_table; $this->session->set_userdata('display_table', $display_table); }
public function __construct() { parent::__construct(); }