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
2010-03-06 03:53:17
Thanks a bunch!
soren.qvist
2010-03-06 13:19:33