Пример #1
0
 public function actionNode($name)
 {
     $node = $this->findNodeModel($name);
     $pages = new Pagination(['totalCount' => $node['topic_count'], 'pageSize' => intval($this->settings['list_pagesize']), 'pageParam' => 'p']);
     return $this->render('node', ['node' => $node, 'topics' => Topic::getTopicsFromNode($node['id'], $pages), 'pages' => $pages]);
 }