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 ?
-
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 fileAjay Patel– Ajay Patel2016年04月06日 12:02:51 +00:00Commented Apr 6, 2016 at 12:02
-
how to find what is name of table created by that module ?Baby in Magento– Baby in Magento2016年04月06日 12:05:06 +00:00Commented Apr 6, 2016 at 12:05
-
no need to table its. its store the value in xmlAjay Patel– Ajay Patel2016年04月06日 12:08:17 +00:00Commented Apr 6, 2016 at 12:08
-
@raphael is right.Ajay Patel– Ajay Patel2016年04月06日 12:08:58 +00:00Commented Apr 6, 2016 at 12:08
1 Answer 1
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– Baby in Magento2016年04月06日 12:05:03 +00:00Commented Apr 6, 2016 at 12:05
-
@user492664463 as I said the module has not created any table it simply uses the native
core_config_dataMagento database tableRaphael at Digital Pianism– Raphael at Digital Pianism2016年04月06日 12:06:39 +00:00Commented 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 ?Baby in Magento– Baby in Magento2016年04月06日 12:09:09 +00:00Commented Apr 6, 2016 at 12:09
-
@user492664463 yes it willRaphael at Digital Pianism– Raphael at Digital Pianism2016年04月06日 12:09:31 +00:00Commented Apr 6, 2016 at 12:09
-
1until the maximum length of the
TEXTcolumn is reached (about 64K)Fabian Schmengler– Fabian Schmengler2016年04月06日 12:31:23 +00:00Commented Apr 6, 2016 at 12:31