• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call, another model in a model

#16
[eluser]chakhar86[/eluser]
From the code I get "my_car" is a class, so you must include or declared above the code?

I recently read a blog about MVC, he said there are two approach to MVC:
1. Thin Controller, Fat Model => Business logic falls to Models
2. Fat Controller, Thin Model => Business Logic falls to Controller

I personally prefer the former. But in case we need a lot of model in single instance of controller then second choice I think have more advantage...

What do you say?


Messages In This Thread
Call, another model in a model - by El Forum - 11-26-2008, 05:52 AM
Call, another model in a model - by El Forum - 11-26-2008, 06:51 AM
Call, another model in a model - by El Forum - 11-26-2008, 07:05 AM
Call, another model in a model - by El Forum - 11-26-2008, 07:07 AM
Call, another model in a model - by El Forum - 11-26-2008, 07:11 AM
Call, another model in a model - by El Forum - 11-26-2008, 07:26 AM
Call, another model in a model - by El Forum - 11-26-2008, 07:46 AM
Call, another model in a model - by El Forum - 11-26-2008, 07:57 AM
Call, another model in a model - by El Forum - 11-26-2008, 08:00 AM
Call, another model in a model - by El Forum - 11-26-2008, 08:39 AM
Call, another model in a model - by El Forum - 11-26-2008, 08:47 AM
Call, another model in a model - by El Forum - 11-26-2008, 05:57 PM
Call, another model in a model - by El Forum - 11-26-2008, 09:23 PM
Call, another model in a model - by El Forum - 11-27-2008, 08:01 AM
Call, another model in a model - by El Forum - 01-08-2009, 02:30 PM
Call, another model in a model - by El Forum - 01-08-2009, 07:42 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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