public function commit() { // echo "cococ";exit(); $this->redirect_with_id = FALSE; if (DataHandler::getValueByArrayIndex($_POST, "destaque")) { if (is_array($_POST["category"])) { $_POST["category"] = DataHandler::appendArray($_POST["category"], $_POST["destaque"]); } else { throw new Exception("envie a array de categoria. Sem isso a content nao funciona."); } } parent::commit(); }