public function delAction() { $id = reqnum('id', 0); $this->forward = "del"; $model = new Psys_StationModel(); $where = array('id' => $id); $re = $model->DeleteOne($where, "rha_station"); $this->smarty->assign('ck', $re ? 1 : 0); $this->forward = "opration"; }