/** * 删除视图 */ public function DelView($vid) { $dbcell = new VDbcellModel(); $dbcell->startTrans(); if ($dbcell->del($vid)) { $dbform = new DbformModel(); if ($dbform->del($vid)) { $dbform->commit(); return true; } else { $dbform->rollback(); return false; } } }