Welcome Guest, Not a member yet? Register   Sign In
CI and HMVC: Organization of my project
#1

[eluser]cmh24[/eluser]
Hi everyboby,

I ran into problems organizing my project.
I have three different types uf users: customers, merchants and admin. All three are directed to a different page after they logged in. These pages are unrelated to each other.
So far, I used HMVC 5.4 to give my project a structure/separation.

I looked at Hero CMS and pyrocms. They handled modules very different, than what I did.

My structure looks like this.
Code:
modules
  +admin
     controllers
     models
     views
  +customer
     controllers
     models
     views
  +merchant
     controllers
     models
     views


I also have a public area for not logged in users.

So here are my questions:
1) Have you any other recommendations how I can structure my project?
2) Should I create another module for the files of the public area, or should I directly put it in application/controllers/... etc. ?
3) How would you integrate Ion Auth? Would you put it outside the modules?

Thanks in advance!
Max




Theme © iAndrew 2016 - Forum software by © MyBB