function add() { if (IS_POST) { $_POST['addon'] = $this->addon; $_POST['target_id'] = session('target_id'); } $model = $this->getModel($this->table); parent::add($model); }
function add() { if (IS_POST) { $this->checkPostData(); $_POST['addon'] = $this->addon; $_POST['target_id'] = session('target_id'); D('Addons://Scratch/Prize')->getPrizes($_POST['target_id'], 'Scratch', true); } $model = $this->getModel($this->table); parent::add($model); }
function add() { $this->_tip(); parent::add(); }