src/controllers/PostController.php
public function showPost($category, $postName)
    {
        if (!$this->post->exists($category, $postName)) {
            return \Response::view($this->theme.'.404', array('global' => $this->global), 404);
        }

        $post = $this->post->getPost($category, $postName);
        $category = $this->category->getCategory($category);

        $viewParamaters = array(
            'post' => $post,
            'global' => $this->global,
            'category' => $category
        );

        return \View::make($this->theme.'.post', $viewParamaters);
    }
public function showPost($category, $postName)
    {
        if (!$this->post->exists($category, $postName)) {
            return \Response::view($this->theme.'.404', array('global' => $this->global), 404);
        }

        $post = $this->post->getPost($category, $postName);
        $category = $this->category->getCategory($category);

        $viewParamaters = array(
            'post' => $post,
            'global' => $this->global,
            'category' => $category
        );

        return \View::make($this->theme.'.post', $viewParamaters);
    }
public function showPost ( $ category , $ postName ) { if ( ! $ this -> post -> exists ( $ category , $ postName ) ) { return \ Response :: view ( $ this -> theme . '.404' , array ( 'global' => $ this -> global ) , 404 ) ; } $ post = $ this -> post -> getPost ( $ category , $ postName ) ; $ category = $ this -> category -> getCategory ( $ category ) ; $ viewParamaters = array ( 'post' => $ post , 'global' => $ this -> global , 'category' => $ category ) ; return \ View :: make ( $ this -> theme . '.post' , $ viewParamaters ) ; }
Show a single post.
@param string $postName The name of the post to retrieve.
@return \View
Show a single post .