コード例 #1
0
ファイル: C_Page.php プロジェクト: Ivan-up/devblog
 public function action_poll()
 {
     $pid = isset($_GET['param']) ? (int) $_GET['param'] : 0;
     // Получение пути к шаблону
     $templateName = $this->getTemplate('components/page/v_poll.php');
     $poll = new C_Poll();
     $template = $poll->get_filled_template_poll($pid, $templateName);
     unset($poll);
     if (empty($template)) {
         $this->p404();
     }
     $this->blocks['_content_page'] = $template;
 }
コード例 #2
0
ファイル: C_Widget.php プロジェクト: Ivan-up/devblog
 public function action_poll()
 {
     $pid = isset($this->params[2]) ? (int) $this->params[2] : 0;
     // Получение пути к шаблону
     $templateName = $this->getTemplate('components/widgets/v_poll.php');
     $poll = new C_Poll();
     $this->content = $poll->get_filled_template_poll($pid, $templateName);
     unset($poll);
 }