Code |
Context }
$product['Product']['props'] .= $product['Property'][$i]['value'];
$id = "402"
$product = array(
"Product" => array(
"id" => "402",
"title" => "Ветровка муж",
"url" => "vetrovka-muzh.html",
"articul" => "6859",
"category_id" => "36",
"producer_id" => "0",
"instock" => "1",
"novelty" => "0",
"status" => "1",
"order" => "3",
"created" => "2017-01-29 21:49:20",
"modified" => "2018-03-29 12:45:46",
"image" => "1",
"price" => "2190.00",
"price_RUR" => "2190.00",
"price_USD" => "32.69",
"price_EUR" => "28.44",
"price_fake" => "0.00",
"rate" => "RUR",
"about_yml" => "",
"about" => "",
"text" => "",
"recommend" => "",
"seo_title" => "",
"seo_keywords" => "",
"seo_description" => "",
"props" => ""
),
"Category" => array(
"id" => "36",
"title" => "Мужские",
"header" => "",
"url" => "muzhskie.html",
"about" => "",
"text" => "",
"image" => "1",
"order" => "1",
"product_count" => "98",
"parent_id" => "20",
"lft" => "68",
"rght" => "69",
"seo_title" => "",
"seo_keywords" => "",
"seo_description" => ""
),
"Producer" => array(
"id" => null,
"title" => null,
"url" => null,
"image" => null,
"about" => null,
"text" => null,
"seo_title" => null,
"seo_keywords" => null,
"seo_description" => null
),
"ProductsProperty" => array(
array(),
array(),
array(),
array()
),
"Property" => array(
array(),
array(),
array(),
array()
)
)
$i = 0
$prop = array(
"id" => "42",
"category_id" => "20",
"title" => "Размеры",
"type" => "multiple",
"values" => "{"1":"S","2":"M","3":"L","4":"XL","5":"2XL","6":"3XL","7":"4XL","8":"5XL","9":"6XL","10":"7XL","11":"8","12":"10","13":"12","14":"14","15":"16"}",
"images" => "",
"recursive" => "1",
"catalog" => "1",
"filter" => "0",
"public" => "1",
"order" => "1",
"ProductsProperty" => array(
"id" => "1532",
"product_id" => "402",
"property_id" => "42",
"value" => "3|4|5|6|7",
"model" => "",
"price" => "0"
)
)
ProductsController::view_ajax() - APP/controllers/products_controller.php, line 151
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
require - APP/webroot/index.php, line 83
[main] - CORE/index.php, line 55