public function Insert() { if (!$_POST['type'] && $_POST['type2']) { $_POST['type'] = $_POST['type2']; } $return[] = array('text' => '继续添加广告', 'link' => U('Ad/add')); $this->assign('return', $return); parent::Insert(); }
function Insert() { $_POST["config"] = serialize($_POST["config"]); parent::Insert(); }