Converting blog tutorial into a module

I have built a Yii application but would like to be able to include a blog only if a client wants one. I don’t have any experience in building modules (this will be my first for my application), but I’m assuming that it would be the best way to optionally offer a blog.

When I first started with Yii, I worked through the blog tutorial, but I was wondering if anyone has converted the blog tutorial application into a module? I searched the forum and couldn’t find anything. If you have done this, could you please offer some advice on how to proceed? Any help would be greatly appreciated!

Thanks!

  1. Use Gii to create module. follow the instruction it gives you to update the main config file

  2. Move all code components of blog (like component, controllers, models, views etc.) in the respective directory under the blog module

  3. Access your blog module now from browser and work through. It should not take you more than 30 min to 3 hrs.

I believe the only changes anticipated would be $this->layout in the controllers, which I am sure your will figure it out

Good luck

Great! Thanks for your help