public function deleteAction($id = false) { $this->permission('delete'); if (!$id) { return Brightery::error404(); } $commerce_brands = new \modules\commerce\models\Commerce_brands(); $commerce_brands->commerce_brand_id = $id; if ($commerce_brands->delete()) { Uri_helper::redirect("management/commerce_brands"); } }