コード例 #1
0
ファイル: ProductPresenter.php プロジェクト: pogodi/Brain
 public function getBrandsToSelect()
 {
     $brands = $this->brandManager->getAll();
     $result = [];
     foreach ($brands as $brand) {
         $result[$brand['id']] = $brand['title'];
     }
     return $result;
 }
コード例 #2
0
ファイル: BrandPresenter.php プロジェクト: pogodi/Brain
 public function actionDelete($category_id)
 {
     $this->brandManager->delete($category_id);
     $this->flashMessage('Brand has been successfully  deleted.', 'success');
     $this->redirect('default');
 }