public function __construct() { parent::__construct(); if (!in_array($this->action, array('ajaxswfupload', 'ueditor_upload')) && (!$this->session->is_set('user_id') && !get_cookie('member_id'))) { $this->attMsg(lang('att-13')); } $this->dir = 'uploadfiles/'; }
public function __construct() { parent::__construct(); $model = $this->get_model('form'); $modelid = (int) $this->get('modelid'); if (empty($modelid)) { $this->msg(lang('for-0')); } $this->model = $model[$modelid]; if (empty($this->model)) { $this->msg(lang('for-1', array('1' => $modelid))); } $this->form = $this->model($this->model['tablename']); $this->modelid = $modelid; $this->view->assign(array('table' => $this->model['tablename'], 'modelid' => $this->modelid, 'form_name' => $this->model['modelname'])); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->tag = $this->model('tag'); }