Welcome, Guest
Username: Password: Remember me

TOPIC: DB Automatisms

DB Automatisms 10 Sep 2012 16:38 #3482

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I don't get the difference between the two options...
Table OR Model.
Could someone please explain ? :dry:
Thanks
The administrator has disabled public write access.

Re: DB Automatisms 10 Sep 2012 21:39 #3494

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
It really do not change anything for the user.
It is an advanced parameter.

Creation date, Modification Date, Aliasing, Authoring, Modification user, ... The source code responsable of these kind of treatments can be written in two different places. Maybe of preference is to empty the table class file (make it really simple), so it is possibile to put this code in the model.
I personally prefer in table, because is guarateed better beiing the last call before storing, but some people may want to play with theses values in the model and not be the last call.

It seems technical, but I know some skilled developpers really mind these kind of things.
I should describe better the difference, but it is not relly important at our level.

For me it is a detail,
While I was writting this 2.0, I had a choice to do and I couln't say what is the proper way to code.

So, this is just an example of option available in future to really customize the MVC layer, where there are no really rules (only tendencies). This option can disapear in future, and others can pop up.
I really don't know the future of this advanced customizations.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: DB Automatisms 11 Sep 2012 05:18 #3509

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
1/ Is it possible to extend classes in TABLE as I did in MODEL, where I added several functions to interact with Google charts ?
2/ isn't the use of the extended TABLE you're proposing in opposition with mvc?
The administrator has disabled public write access.
Time to create page: 0.121 seconds

Get Started