Controller_Shindig_Blog::action_post PHP Method

action_post() public method

public action_post ( )
    public function action_post()
    {
        $this->request->response = View::factory('shindig/post')->bind('post', $post);
        $slug = $this->request->param('slug');
        $post = Sprig::factory('shindig_post')->values(array('slug' => $slug, 'type' => 'post', 'status' => 'publish'))->load();
        if (!$post->loaded()) {
            throw new Shindig_Exception(__('Post ":post" Not Found'), array(':post' => $slug), 404);
        }
    }