public function add($form) { $model = new Tooltip(); $values = $form->getValues(); try { $data = $model->createRow($values); $id = $data->save(); } catch (Exception $e) { throw $e; } $this->updateNewTooltip($id); return $id; }