public function formatUrl($slug, $blogId)
    {
        $this->load->model('blog/blog_model');
        return $this->blog_model->getBlogUrl($blogId) . '/' . $slug;
    }
public function formatUrl($slug, $blogId)
    {
        $this->load->model('blog/blog_model');
        return $this->blog_model->getBlogUrl($blogId) . '/' . $slug;
    }
public function formatUrl ( $ slug , $ blogId ) { $ this -> load -> model ( 'blog/blog_model' ) ; return $ this -> blog_model -> getBlogUrl ( $ blogId ) . '/' . $ slug ; }
Format a posts's URL

@param  string $slug   The post's slug
@param  int    $blogId The blog's ID

@return string
Format a posts s URL