sCurrentEvent,$aMatch)) { $iPage=$aMatch[1]; } else { $iPage=1; } /** * Получаем список комментов */ $iCount=0; $aResult=$this->Comment_GetCommentsAll($iCount,$iPage,BLOG_COMMENT_PER_PAGE); $aComments=$aResult['collection']; /** * Формируем постраничность */ $aPaging=$this->Viewer_MakePaging($aResult['count'],$iPage,BLOG_COMMENT_PER_PAGE,4,DIR_WEB_ROOT.'/comments'); /** * Загружаем переменные в шаблон */ $this->Viewer_Assign('aPaging',$aPaging); $this->Viewer_Assign("aComments",$aComments); $this->Viewer_AddHtmlTitle($this->Lang_Get('comments')); /** * Устанавливаем шаблон вывода */ $this->SetTemplateAction('index'); } } ?>