2

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

  • 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 Apr 6 '16 at 12:02
  • how to find what is name of table created by that module ? – Baby in Magento Apr 6 '16 at 12:05
  • no need to table its. its store the value in xml – Ajay Patel Apr 6 '16 at 12:08
  • @raphael is right. – Ajay Patel Apr 6 '16 at 12:08
3

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.

  • how to find what is name of table created by that module ? – Baby in Magento Apr 6 '16 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 – Raphael at Digital Pianism Apr 6 '16 at 12:06
  • in this module i mentioned in question, if we enter thousand of zip codes, will it save in core_config_data ? – Baby in Magento Apr 6 '16 at 12:09
  • @user492664463 yes it will – Raphael at Digital Pianism Apr 6 '16 at 12:09
  • 1
    until the maximum length of the TEXT column is reached (about 64K) – Fabian Schmengler Apr 6 '16 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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