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.274 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started