public function index() { $blog = new lib\Blog(); $listing = $blog->listing(); $this->addTag('currentCategory', 'all'); $this->addTag('blogListing', $listing); $this->setView('home/index'); }
public function view($blogName) { $blog = new lib\Blog(); $text = $blog->render($blogName); $this->addTag('blogListing', $this->_blogLib->getSimilar(str_replace('+', '-', $blogName))); $this->addTag('pageTitle', str_replace('+', ' ', $blogName)); $this->addTag('blog', $text); $this->setView('blog/view'); }