Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

DB Automatisms 10 Sep 2012 16:38 #3482

  • VeCrea
  • VeCrea's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
I don't get the difference between the two options...
Table OR Model.
Could someone please explain ? :dry:
Thanks

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • VeCrea
  • VeCrea's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
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?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.079 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started