Пример #1
0
 /**
  * Parse
  */
 private function parse()
 {
     // get categories
     $block = FrontendBlocksModel::getById($this->data['id']);
     // assign comments
     $this->tpl->assign('block', $block);
 }
Пример #2
0
 /**
  * Parse
  */
 private function parse()
 {
     // get categories
     $category = FrontendBlocksModel::getCategoryById($this->data['id']);
     $blocks = FrontendBlocksModel::getAllByCategory($this->data['id']);
     // assign comments
     $this->tpl->assign('category', $category);
     $this->tpl->assign('blocks', $blocks);
 }