function OnPostback() { # get object $this->o_category = $this->o_edit->GetDataObject(); # save data if valid if ($this->IsValid()) { $i_id = $this->o_category_manager->Save($this->o_category); $this->o_category->SetId($i_id); # Update category cache with changes $this->o_category_manager->UpdateHierarchyData($this, 'GetCategoryNavigateUrl'); $this->SetCategories($this->GetAllCategories()); $this->OnCreateSiteContext(); $this->Redirect("/yesnosorry/categorylist.php"); } }