nest under root CakeProducts config

This commit is contained in:
2025-03-28 02:17:28 -07:00
parent 3f45e46f31
commit b6230817eb
2 changed files with 6 additions and 2 deletions

View File

@@ -131,7 +131,9 @@ class ProductCatalogsController extends AppController
if ($this->_productCatalogsTable instanceof Table) { if ($this->_productCatalogsTable instanceof Table) {
return $this->_productCatalogsTable; 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; return $this->_productCatalogsTable;
} }

View File

@@ -30,7 +30,9 @@ class ProductCategoriesController extends AppController
if ($this->_productCategoriesTable instanceof Table) { if ($this->_productCategoriesTable instanceof Table) {
return $this->_productCategoriesTable; 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; return $this->_productCategoriesTable;
} }