src/controllers/PostController.php
public function showPosts($pagenumber = 1)
    {
        $posts = $this->post->findAll();

        $viewParamaters = array(
            'global' => $this->global,
            'posts' => $posts,
            'pageNumber' => $pagenumber
        );

        return \View::make($this->theme.'.posts', $viewParamaters);
    }
public function showPosts($pagenumber = 1)
    {
        $posts = $this->post->findAll();

        $viewParamaters = array(
            'global' => $this->global,
            'posts' => $posts,
            'pageNumber' => $pagenumber
        );

        return \View::make($this->theme.'.posts', $viewParamaters);
    }
public function showPosts ( $ pagenumber = 1 ) { $ posts = $ this -> post -> findAll ( ) ; $ viewParamaters = array ( 'global' => $ this -> global , 'posts' => $ posts , 'pageNumber' => $ pagenumber ) ; return \ View :: make ( $ this -> theme . '.posts' , $ viewParamaters ) ; }
Show all of the posts.
@return \View
Show all of the posts .