I'm just getting started using HMVC in Codeigniter. The main module is a news/blog site called 'blog'. I want users to be able to log in to comment, so I have authentication files (tank auth actually). Now I also want the users to have their own profile pages which shows their posting stats and personal info. Users can also have a Private Message system where they send messages to each other.
Being new to HMVC, how should I modularize my code? I'm currently guessing a good one will be
- 'blog' - Blog/News Display
- 'auth' - User Authentication
- 'users' - User profile + Private Message
Both 'blog' and 'users' will be calling 'auth' which also displays a little widget at the corner of the page that shows Sign up | Register if not logged in, and Welcome John! Profile | Inbox | Settings if logged in as John.
Or should I combine 'auth' and 'users' together, or split 'users' into 'profile' and 'messaging'? How will the hierarchy be like if you were to design the HMVC structure?