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

TOPIC:

How the textfield value will be inserted into sql 29 May 2012 11:06 #2431

  • f9tech
  • f9tech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Recently,i created a component and downloaded that component.Now,i want to customize that component according to my requirements.I want to know small thing i.e.

How the text field value will be stored into database? Please provide step by step description.

I searched all the files but i didn't find any "insert sql statement".Please specify the file path which has sql statements that are used to insert the data into database.

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

Re: How the textfield value will be inserted into sql 29 May 2012 11:18 #2433

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This is standard Joomla MVC question.

The model of the concerned table (item model) call the save($data) method to do the job.

If you want to access or change values before or after, just write them in the controller save() and apply() functions.
Coding is now a piece of cake

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

  • Page:
  • 1
Time to create page: 0.077 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started