How is an edit form in the back-end saved? - Joomla! Forum - community, help and support
i'm still trying understand whole joomla coding conventions, , decided use component creator create mockup component. can retrieve , data database. can't seem find in models or controllers hint database insertion after form saved.
so question is, after form saved, happens? how routed? how values of form inserted database? how add fields? importantly, how control database insertion? (i want data go tables)
i'm using
http://extensions.joomla.org/extensions/tools/webbased-tools/7627
thanks in advance
so question is, after form saved, happens? how routed? how values of form inserted database? how add fields? importantly, how control database insertion? (i want data go tables)
i'm using
http://extensions.joomla.org/extensions/tools/webbased-tools/7627
thanks in advance
joomla have own structure generating forms , persisting data using xml (with form fields). gonna give example of "custom html" (mod_custom) module...
take @ file "modules/mod_custom/mod_custom.xml". , compare admin screen, being more specific, fields @ right (forget html content field now). gonna see xml's <fields name="params"> tag contains custom html parameters. try adding field mentioned xml, appear in admin screen.
if add new field, populate , save, see data persisted , did not changed insert and/or update query... so, data goes? here answer: table xxx_modules, colum params. there find json string, is, in case, basically: { "key1":"value1", "key2":"value2", "key3":"value3" } . there find new field beign persisted.
i have choose com_custom because it's parameters have fields radio (prepare_content) , media selector (backgroundimage), instead of text fields. guess component creator creates xml data persisting too.
good luck!
take @ file "modules/mod_custom/mod_custom.xml". , compare admin screen, being more specific, fields @ right (forget html content field now). gonna see xml's <fields name="params"> tag contains custom html parameters. try adding field mentioned xml, appear in admin screen.
if add new field, populate , save, see data persisted , did not changed insert and/or update query... so, data goes? here answer: table xxx_modules, colum params. there find json string, is, in case, basically: { "key1":"value1", "key2":"value2", "key3":"value3" } . there find new field beign persisted.
i have choose com_custom because it's parameters have fields radio (prepare_content) , media selector (backgroundimage), instead of text fields. guess component creator creates xml data persisting too.
good luck!
Comments
Post a Comment