• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controller / model separation, templating

#3
[eluser]ojcarga[/eluser]
Hi

1) In the controller.
2) This is up to you and the app workflow, in the case you explain above maybe would be better for you to user just one method.
3) I am not sure if I really understand this point Sad
4) If all your app use the db, YES, if no it is not necessary.
5) I would say that if you sent back HTML you should use views to hold that HTML, this way you are going to have a cleaner and separated code.

BTW: the correct name for functions that are inside a class is method, not function Wink


Messages In This Thread
Controller / model separation, templating - by El Forum - 09-21-2012, 11:00 AM
Controller / model separation, templating - by El Forum - 09-21-2012, 11:03 AM
Controller / model separation, templating - by El Forum - 09-21-2012, 03:47 PM
Controller / model separation, templating - by El Forum - 09-21-2012, 11:53 PM
Controller / model separation, templating - by El Forum - 09-22-2012, 12:41 AM
Controller / model separation, templating - by El Forum - 09-22-2012, 05:23 PM
Controller / model separation, templating - by El Forum - 09-23-2012, 11:31 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.