public function delete() { if ($this->show->itemID) { $Br = new Catalog_Category(); if ($Br->isEmptyBrand($this->show->itemID)) { $oBrand = new Catalog_Brand(); $oBrand->delete($this->show->itemID); } } redirect(BASE_PATH . 'admin/catalog/brand'); }