Notice (8) : Undefined index: listId [APP/View/Products/view.ctp , line 265 ]Code Context
<?php
$listId = $_SESSION [ 'listId' ];
$viewFile = '/var/www/vhosts/dietcontrung.danang.vn/httpdocs/app/View/Products/view.ctp'
$dataForView = array(
'data' => array(
'Product' => array(
'id' => '37',
'name' => 'PEKACYP 35EC',
'slug' => 'pekacyp-35ec',
'thumbnail' => '/app/webroot/uploads/files/S%E1%BA%A3n%20ph%E1%BA%A9m%20Ki%C3%AAn%20Nam/z1534230637293_b30736e4adfc94785ff29d729dc5668c.jpg',
'price' => '550000',
'description' => '',
'content' => '',
'created' => '2019-09-12 22:57:15',
'status' => '1',
'category_id' => '5'
),
'Category' => array(
'id' => '5',
'parent_id' => '0',
'name' => 'Sản phẩm',
'slug' => 'san-pham',
'description' => '',
'created' => '2017-08-23 09:53:35'
)
)
)
$data = array(
'Product' => array(
'id' => '37',
'name' => 'PEKACYP 35EC',
'slug' => 'pekacyp-35ec',
'thumbnail' => '/app/webroot/uploads/files/S%E1%BA%A3n%20ph%E1%BA%A9m%20Ki%C3%AAn%20Nam/z1534230637293_b30736e4adfc94785ff29d729dc5668c.jpg',
'price' => '550000',
'description' => '',
'content' => '',
'created' => '2019-09-12 22:57:15',
'status' => '1',
'category_id' => '5'
),
'Category' => array(
'id' => '5',
'parent_id' => '0',
'name' => 'Sản phẩm',
'slug' => 'san-pham',
'description' => '',
'created' => '2017-08-23 09:53:35'
)
)
$id = '37'
$title = 'PEKACYP 35EC'
$content = ''
$description = ''
$date = 'Sep 12, 2019 10:57:15 PM'
$image = '/app/webroot/uploads/files/S%E1%BA%A3n%20ph%E1%BA%A9m%20Ki%C3%AAn%20Nam/z1534230637293_b30736e4adfc94785ff29d729dc5668c.jpg'
$price = '550000' include - APP/View/Products/view.ctp, line 265
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118 Warning (2) : in_array() expects parameter 2 to be array, null given [APP/View/Products/view.ctp , line 266 ]Code Context <?php
$listId = $_SESSION [ 'listId' ];
if ( in_array ( $id , $listId )) {
$viewFile = '/var/www/vhosts/dietcontrung.danang.vn/httpdocs/app/View/Products/view.ctp'
$dataForView = array(
'data' => array(
'Product' => array(
'id' => '37',
'name' => 'PEKACYP 35EC',
'slug' => 'pekacyp-35ec',
'thumbnail' => '/app/webroot/uploads/files/S%E1%BA%A3n%20ph%E1%BA%A9m%20Ki%C3%AAn%20Nam/z1534230637293_b30736e4adfc94785ff29d729dc5668c.jpg',
'price' => '550000',
'description' => '',
'content' => '',
'created' => '2019-09-12 22:57:15',
'status' => '1',
'category_id' => '5'
),
'Category' => array(
'id' => '5',
'parent_id' => '0',
'name' => 'Sản phẩm',
'slug' => 'san-pham',
'description' => '',
'created' => '2017-08-23 09:53:35'
)
)
)
$data = array(
'Product' => array(
'id' => '37',
'name' => 'PEKACYP 35EC',
'slug' => 'pekacyp-35ec',
'thumbnail' => '/app/webroot/uploads/files/S%E1%BA%A3n%20ph%E1%BA%A9m%20Ki%C3%AAn%20Nam/z1534230637293_b30736e4adfc94785ff29d729dc5668c.jpg',
'price' => '550000',
'description' => '',
'content' => '',
'created' => '2019-09-12 22:57:15',
'status' => '1',
'category_id' => '5'
),
'Category' => array(
'id' => '5',
'parent_id' => '0',
'name' => 'Sản phẩm',
'slug' => 'san-pham',
'description' => '',
'created' => '2017-08-23 09:53:35'
)
)
$id = '37'
$title = 'PEKACYP 35EC'
$content = ''
$description = ''
$date = 'Sep 12, 2019 10:57:15 PM'
$image = '/app/webroot/uploads/files/S%E1%BA%A3n%20ph%E1%BA%A9m%20Ki%C3%AAn%20Nam/z1534230637293_b30736e4adfc94785ff29d729dc5668c.jpg'
$price = '550000'
$listId = null in_array - [internal], line ??
include - APP/View/Products/view.ctp, line 266
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118
Thêm vào giỏ