Code Context }
$comments[$key]['Comment']['username']=isset($userInfo['User']['nick_name'])?$userInfo['User']['nick_name']:"保密";
$comments[$key]['Comment']['avatar']=$userInfo['User']['avatar'];
$id = '16'
$userId = (int) 0
$agreeTopic = array(
'攻略' => '10',
'视频' => '40',
'分享' => '50',
'问答' => '60'
)
$commentTopic = array(
'攻略' => '10',
'医院' => '20',
'医生' => '30',
'视频' => '40',
'分享' => '50',
'问答' => '60',
'新闻' => '70'
)
$info = array(
'Share' => array(
'id' => '16',
'meta_title' => '很多人说试管婴儿的寿命不长的,是真的吗?',
'meta_keywords' => '泰国试管婴儿',
'meta_description' => '试管婴儿',
'title' => '很多人说试管婴儿的寿命不长的,是吗',
'content' => '很多人说试管婴儿的寿命不长的,是真的吗?',
'imgs' => '',
'tag' => '70',
'tag2' => '',
'city_id' => '4',
'hospital_id' => '0',
'uid' => '76',
'is_top' => false,
'sort' => '100',
'comment_num' => '3',
'browse_num' => '1984',
'agree_num' => '1',
'status' => true,
'type' => true,
'is_replay' => true,
'description' => '',
'update_time' => '2017-09-13 16:15:28',
'create_time' => '2017-09-13 16:15:28',
'username' => '1379爱',
'avatar' => '/uploads/avatar/image/2018/201869.jpg',
'city' => '泰国',
'images' => array()
)
)
$picTopic = array(
'攻略' => '10',
'分享' => '20',
'问答' => '30',
'医院' => '50',
'手机推广医院' => '60'
)
$userInfo = array()
$cyInfo = array(
'District' => array(
'id' => '4',
'country' => '泰国',
'sort' => '0',
'nav_name' => '泰国试管婴儿',
'description' => '。',
'meta_title' => '',
'meta_keywords' => '',
'meta_description' => ''
)
)
$picData = array()
$comments = array(
(int) 0 => array(
'Comment' => array(
'id' => '158',
'mate_title' => '',
'meta_keywords' => '',
'meta_description' => '',
'topic_type' => '60',
'topic_id' => '16',
'parent_id' => '0',
'reply_id' => '0',
'uid' => '8',
'content' => '世界上第一个试管婴儿都还不到50岁,不知道什么人发布的这种言论,毫无科学依据吧',
'browse_num' => '0',
'agree_num' => '0',
'is_top' => false,
'sort' => '1000',
'comment_time' => '2017-11-14 11:16:24',
'create_time' => '2017-11-14 11:22:47',
'username' => '李酸酸儿 ',
'avatar' => '/uploads/avatar/image/2018/20181.jpg',
'childCmt' => array([maximum depth reached])
)
),
(int) 1 => array(
'Comment' => array(
'id' => '7',
'mate_title' => '',
'meta_keywords' => '',
'meta_description' => '',
'topic_type' => '60',
'topic_id' => '16',
'parent_id' => '0',
'reply_id' => '0',
'uid' => '122',
'content' => '不是的',
'browse_num' => '0',
'agree_num' => '0',
'is_top' => false,
'sort' => '0',
'comment_time' => '2017-09-18 11:07:29',
'create_time' => '2017-09-18 11:07:29',
'username' => '保密'
)
),
(int) 2 => array(
'Comment' => array(
'id' => '146',
'mate_title' => '',
'meta_keywords' => '',
'meta_description' => '',
'topic_type' => '60',
'topic_id' => '16',
'parent_id' => '0',
'reply_id' => '0',
'uid' => '33',
'content' => '很多人还说2012是世界末日呢,试管婴儿只是怀孕的方式不一样而已',
'browse_num' => '0',
'agree_num' => '0',
'is_top' => false,
'sort' => null,
'comment_time' => '2017-11-05 12:43:27',
'create_time' => '2017-11-06 15:27:41'
)
)
)
$key = (int) 1
$value = array(
'Comment' => array(
'id' => '7',
'mate_title' => '',
'meta_keywords' => '',
'meta_description' => '',
'topic_type' => '60',
'topic_id' => '16',
'parent_id' => '0',
'reply_id' => '0',
'uid' => '122',
'content' => '不是的',
'browse_num' => '0',
'agree_num' => '0',
'is_top' => false,
'sort' => '0',
'comment_time' => '2017-09-18 11:07:29',
'create_time' => '2017-09-18 11:07:29'
)
)
$childCmt = array()
$childAttr = array()
AnswerController::info() - APP/Controller/AnswerController.php, line 192
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 120