Exemplo n.º 1
0
 public function index()
 {
     $blog = new lib\Blog();
     $listing = $blog->listing();
     $this->addTag('currentCategory', 'all');
     $this->addTag('blogListing', $listing);
     $this->setView('home/index');
 }
Exemplo n.º 2
0
 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');
 }