/** * @see Form::save() */ public function save() { ACPForm::save(); // save $this->smileyCategory->update($this->title, $this->showOrder); // reset cache SmileyEditor::resetCache(); $this->saved(); // show success message WCF::getTPL()->assign('success', true); }
/** * @see Form::save() */ public function save() { parent::save(); // save SmileyCategoryEditor::create($this->title, $this->showOrder); // reset cache SmileyEditor::resetCache(); $this->saved(); // reset values $this->title = ''; $this->showOrder = 0; // show success message WCF::getTPL()->assign('success', true); }