function __construct() { parent::__construct(); $this->Lang_model->loadLang('admin'); $this->load->helper('array'); $this->load->model('Purview_model'); $this->Data_model->setTable($this->tablefunc); $this->editlang = $this->Lang_model->getEditLang(); $this->modelarr = mult_to_single($this->Data_model->getData(array('status' => 1, 'isrecommend' => 1), 'listorder', 0, 0, 'model'), 'varname'); }
function __construct() { parent::__construct(); $this->Lang_model->loadLang('admin'); $this->load->helper('array'); $this->load->model('Purview_model'); $this->Data_model->setTable($this->tablefunc); $this->editlang = $this->Lang_model->getEditLang(); $this->typearr = mult_to_single($this->Data_model->getData(array('status' => 1, 'lang' => $this->editlang, 'class' => $this->tablefunc), 'listorder', 0, 0, 'type')); }
function __construct() { parent::__construct(); $this->Lang_model->loadLang('admin'); $this->load->helper('array'); $this->load->helper('date'); $this->load->model('Purview_model'); $this->load->model('Tags_model'); $this->Data_model->setTable($this->tablefunc); $this->editlang = $this->Lang_model->getEditLang(); $this->categoryarr = mult_to_single($this->Data_model->getData(array('isdisabled' => 0, 'lang' => $this->editlang, 'model' => $this->tablefunc), 'parent,listorder', 0, 0, 'category')); $this->recommendarr = $this->Data_model->getData(array('status' => 1, 'lang' => $this->editlang), 'listorder', 0, 0, 'recommend'); }