/**
  * @param $id
  */
 public function actionDefault($id)
 {
     $this->post = $this->postFacade->getOne($id);
     if (!$this->post) {
         $this->setView('notFound');
     } else {
         $this->postFacade->increaseHit($this->post);
         $this->template->post = $this->post;
         $this->template->tags = $this->post->getTags()->toArray();
         if (!($category = $this->post->getCategory())) {
             $category = 'none';
         }
         $this->template->category = $category;
     }
 }
 /**
  * @return \Flame\CMS\Components\Posts\PostControl
  */
 public function createComponentPostsControl()
 {
     return $this->postControlFactory->create($this->postFacade->getLastPublishPosts());
 }