views:

34

answers:

1

Hi, I was wondering how you find it most easy to setup your controllers. Do you use one controller pr. sub-section of your site (ie. “Friends”, “Inbox”, “My account” etc.), or do you just use one controller that keeps all of the sub-sections?

+1  A: 

I use them as follows

-User
---login
---register
---logout
---forgotpassword

-Messages
---Inbox
---Sent
---Archived

-Account
---Login
---Notifications
---Billing

etc down the line

this keeps your codebase neat and tidy

if you want your url to be like http://mysite.com/login then you can set a custom route in config/routes.php

Tom Schlick
Thanks a bunch!
soren.qvist