3

I saw one module folders and files in magento connect. in that only etc, Helper, & Module folder is present.

but there is no sql folder. but still that module created a text box in backend , so that we can enter the zip codes in textfield and its going to be save in database.

so what is the reason behind that table. also how to find what is name of table craeted by that module ?

enter image description here

4
  • hi, here is created in XML file for the config layout. under the etc folder and data maintain by this file. for system config layout no need to create any phtml file
    – Ajay Patel
    Commented Apr 6, 2016 at 12:02
  • how to find what is name of table created by that module ? Commented Apr 6, 2016 at 12:05
  • no need to table its. its store the value in xml
    – Ajay Patel
    Commented Apr 6, 2016 at 12:08
  • @raphael is right.
    – Ajay Patel
    Commented Apr 6, 2016 at 12:08

1 Answer 1

4

You don't necessarily need sql install/upgrade scripts to have variables stored in the database.

Creating fields for a module under etc/system.xml will let people save variables in the core_config_data database table without the need of a sql folder.

5
  • how to find what is name of table created by that module ? Commented Apr 6, 2016 at 12:05
  • @user492664463 as I said the module has not created any table it simply uses the native core_config_data Magento database table Commented Apr 6, 2016 at 12:06
  • in this module i mentioned in question, if we enter thousand of zip codes, will it save in core_config_data ? Commented Apr 6, 2016 at 12:09
  • @user492664463 yes it will Commented Apr 6, 2016 at 12:09
  • 1
    until the maximum length of the TEXT column is reached (about 64K) Commented Apr 6, 2016 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.