public function view() { $s = file_get_contents(BASEVIEW . '/' . v('wiki_test.html')); $s = Wiki2html::process($s); $s = SyntaxHighlighter::process($s); $v = $this->smarty; $v->assign('inc_content', v('wiki_test_footer.html')); $v->assign('content', $s); $this->display($v, v('index.html')); }
public function view() { if ($this->isPosting()) { return $this->processPost(); } $postId = $this->params[0]; $dao = DAO::getDAO('PostDAO'); $post = $dao->getById($postId); $postContent = $post['content']; $postContent = html_entity_decode($postContent); $postContent = Wiki2html::process($postContent); $v = $this->smarty; $v->setTemplateDir(BASEEXT . '/blog/view'); $v->assign('post', $post); $v->assign('postContent', $postContent); $this->display($v, 'blog_edit.html'); }