Blog module as default "view"

edited October 2011 in Modules
Hi, I'm new to fuelcms.

I have a simple question, which I have search around for an answer, but I had no such luck :(

How do I set the blog module as default page ?

I tried set the $config['default_home_view'] to "blog" but that didn't work, and thats because it looks for a view file and not a module correct?

Comments

  • edited 3:16PM
    That's correct. You can set your default_controller in your routes configuration file to something like this:
    $route['default_controller'] = 'blog_home';
    Then you can create a controller in your applications directory that inherits from the blog controller like so:
    <?php require_once(BLOG_PATH.'controllers/Blog.php'); class Blog_home extends Blog { function __construct() { parent::__construct(); } }
Sign In or Register to comment.