public function pullmoreAction() { if ($datas = $this->getRequest()->getParams()) { try { $comment = new Comment_Model_Comment(); $comments = $comment->pullMore($datas['option_value_id'], $datas['pos_id'], $datas['from'], 5); $partial_comment = ''; $partial_details = ''; foreach ($comments as $comment) { $partial_comment .= $this->getLayout()->addPartial('comment_' . $comment->getId(), 'core_view_mobile_default', 'comment/l1/view/item.phtml')->setCurrentComment($comment)->toHtml(); $partial_details .= $this->getLayout()->addPartial('comment_details_' . $comment->getId(), 'core_view_mobile_default', 'comment/l1/view/details.phtml')->setCurrentComment($comment)->toHtml(); } $html = array('success' => 1, 'comments' => $partial_comment, 'details' => $partial_details); } catch (Exception $e) { $html = array('error' => 1, 'message' => $e->getMessage()); } $this->_sendHtml($html); } }