I need some help structuring my website.
I have a home.php controller that just draws the home page. The members.php controller is basically handling everything else from checking if a user is logged in, to sending users to the signup page, and data to the membership_model.php.
My question is: Should I arrange this differently? Shouldn't my home.php controller be responsible for loading the correct views when a user clicks a given link. If the user clicks a REGISTER button, shouldn't the home.php controller load the template of the registration page? I just feel its wrong to have the controller that loads the home page do only that.
If I have a register method in the home page controller, and also have a register.php controller to handle things that happen from the registration page, is that okay? Is that proper?
Thanks a lot!