public function actionGetCommentBySectionId()
 {
     $section_id = $this->getParam('section_id');
     $comments = Converter::convertModelToArray(HiStorySection::model()->with('customer', 'comments.customer')->findByPk($section_id));
     EchoUtility::echoMsgTF(1, '获取段子评论', $comments);
 }
 public function checkLayerSection($section)
 {
     $layer_c = new CDbCriteria();
     $layer_c->addCondition('parent_id = ' . $section['section_id']);
     $section['has_layer'] = HiStorySection::model()->count($layer_c) > 0 ? 1 : 0;
     $section['is_bottom'] = 1;
     return $section;
 }