nest under root CakeProducts config
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user