Still a bit confused about how I should divide up my controllers |
[eluser]frist44[/eluser]
With regards to code break-up, I usually create a controller for specific functions like the one you mention. Because your application sounds relatively simple, it makes sense to be able to use a URL like www.domain.com/login for the login page. In the past, I have created a user controller, and had all those user account functions in there, that works too (www.domain.com/user/login). I think that many moderns applications like Rails are moving towards the RESTful interface, so it should make sense what the function is doing based on the URL. Hope this helps! |
Messages In This Thread |
Still a bit confused about how I should divide up my controllers - by El Forum - 08-09-2010, 02:17 PM
Still a bit confused about how I should divide up my controllers - by El Forum - 08-09-2010, 02:38 PM
|