Notice (8) : Undefined index: us [APP/Controller/SiteController.php , line 48 ]Code Context
if(!isset( $catId )){ $title = 'Sản phẩm' ;}
else { $title = $category [ $catId ][ 'name' ]; } $categoryClass = object(Category) {
recursive => (int) -1
useDbConfig => 'default'
useTable => 'categories'
id => false
data => array()
schemaName => 'slsydomshosting_justates_slsydomshosting_justates_kitafood'
table => 'categories'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Category'
alias => 'Category'
tableToModel => array(
'categories' => 'Category'
)
cacheQueries => false
belongsTo => array()
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'parent' => array(
[maximum depth reached]
),
'name' => array(
[maximum depth reached]
),
'path' => array(
[maximum depth reached]
),
'img' => array(
[maximum depth reached]
),
'desc' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
),
'deleted' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
$productClass = object(Product) {
recursive => (int) -1
useDbConfig => 'default'
useTable => 'products'
id => false
data => array()
schemaName => 'slsydomshosting_justates_slsydomshosting_justates_kitafood'
table => 'products'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Product'
alias => 'Product'
tableToModel => array(
'products' => 'Product'
)
cacheQueries => false
belongsTo => array()
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'category' => array(
[maximum depth reached]
),
'sku' => array(
[maximum depth reached]
),
'name' => array(
[maximum depth reached]
),
'path' => array(
[maximum depth reached]
),
'img1' => array(
[maximum depth reached]
),
'img2' => array(
[maximum depth reached]
),
'img3' => array(
[maximum depth reached]
),
'img4' => array(
[maximum depth reached]
),
'img5' => array(
[maximum depth reached]
),
'img6' => array(
[maximum depth reached]
),
'desc' => array(
[maximum depth reached]
),
'desc_full' => array(
[maximum depth reached]
),
'price' => array(
[maximum depth reached]
),
'price_promo' => array(
[maximum depth reached]
),
'price_full' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
),
'deleted' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
$category = array(
(int) 1 => array(
'id' => '1',
'parent' => null,
'name' => 'Bánh kem Happy Kita',
'path' => 'banh-kem-happy-kita',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 2 => array(
'id' => '2',
'parent' => '1',
'name' => 'Bánh phong cách Âu',
'path' => 'banh-phong-cach-au',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 3 => array(
'id' => '3',
'parent' => '1',
'name' => 'Bánh mứt trái cây',
'path' => 'banh-mut-trai-cay',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 4 => array(
'id' => '4',
'parent' => '1',
'name' => 'Bánh nghệ thuật',
'path' => 'banh-nghe-thuat',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 5 => array(
'id' => '5',
'parent' => '1',
'name' => 'Bánh đặc biệt',
'path' => 'banh-dac-biet',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 6 => array(
'id' => '6',
'parent' => null,
'name' => 'Bánh HappyKita khác ',
'path' => 'banh-happykita-khac-',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 7 => array(
'id' => '7',
'parent' => null,
'name' => 'Bánh trung thu',
'path' => 'banh-trung-thu',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 8 => array(
'id' => '8',
'parent' => null,
'name' => 'Hộp bánh trung thu',
'path' => 'hop-banh-trung-thu',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 9 => array(
'id' => '9',
'parent' => null,
'name' => 'Kem & Trà sữa',
'path' => 'kem-tra-sua',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
),
(int) 10 => array(
'id' => '10',
'parent' => null,
'name' => 'Hộp quà Tết',
'path' => 'hop-qua-tet',
'img' => null,
'desc' => null,
'created' => null,
'modified' => null,
'deleted' => null
)
)
$catId = 'us'
$catIdArr = array(
(int) 0 => 'us'
)
$product = array() SiteController::sanpham() - APP/Controller/SiteController.php, line 48
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118 Warning (2) : Cannot modify header information - headers already sent by (output started at /home/slsydomshosting/public_html/987-kitafood/lib/Cake/Utility/Debugger.php:794) [CORE/Cake/Network/CakeResponse.php , line 449 ]Code Context $name , $c [ 'value' ], $c [ 'expire' ], $c [ 'path' ],
$c [ 'domain' ], $c [ 'secure' ], $c [ 'httpOnly' ]
); $name = 'CakeCookie[lang]'
$c = array(
'name' => 'CakeCookie[lang]',
'value' => 'Q2FrZQ==.mRYD',
'expire' => '1799711536',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false
) setcookie - [internal], line ??
CakeResponse::_setCookies() - CORE/Cake/Network/CakeResponse.php, line 449
CakeResponse::send() - CORE/Cake/Network/CakeResponse.php, line 419
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 174
[main] - APP/webroot/index.php, line 118
KitaFood - Chữ Tâm là thương hiệu