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; }
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); }