From b6230817eb6a4d1627a2a8e52b6a165085c9a790 Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Fri, 28 Mar 2025 02:17:28 -0700 Subject: [PATCH] nest under root CakeProducts config --- src/Controller/ProductCatalogsController.php | 4 +++- src/Controller/ProductCategoriesController.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Controller/ProductCatalogsController.php b/src/Controller/ProductCatalogsController.php index 39a71b8..14e6b26 100644 --- a/src/Controller/ProductCatalogsController.php +++ b/src/Controller/ProductCatalogsController.php @@ -131,7 +131,9 @@ class ProductCatalogsController extends AppController if ($this->_productCatalogsTable instanceof Table) { return $this->_productCatalogsTable; } - $this->_productCatalogsTable = TableRegistry::getTableLocator()->get(Configure::read('ProductCatalogs.table', 'CakeProducts.ProductCatalogs')); + $this->_productCatalogsTable = TableRegistry::getTableLocator()->get( + Configure::read('CakeProducts.ProductCatalogs.table', 'CakeProducts.ProductCatalogs') + ); return $this->_productCatalogsTable; } diff --git a/src/Controller/ProductCategoriesController.php b/src/Controller/ProductCategoriesController.php index ab1230d..369a099 100644 --- a/src/Controller/ProductCategoriesController.php +++ b/src/Controller/ProductCategoriesController.php @@ -30,7 +30,9 @@ class ProductCategoriesController extends AppController if ($this->_productCategoriesTable instanceof Table) { return $this->_productCategoriesTable; } - $this->_productCategoriesTable = TableRegistry::getTableLocator()->get(Configure::read('ProductCategories.table', 'CakeProducts.ProductCategories')); + $this->_productCategoriesTable = TableRegistry::getTableLocator()->get( + Configure::read('CakeProducts.ProductCategories.table', 'CakeProducts.ProductCategories') + ); return $this->_productCategoriesTable; }