How to make a form - Joomla! Forum - community, help and support
for several days have been trying understand joomla (2.5) forms , not progressing. trying understand how make form natively.
(of course know there many extensions create form. have played breezingforms. seems not code generator executes forms inside of itself. didn't me learn more how forms work.)
my first question how joomla forms fit mvc paradigm. when @ example forms, e.g., in com_user, notice each form has model , view. appears strange me. according understanding of mvc, form should view (only). let's have used car marketplace application. there model describing car (color, horsepower, model, etc.). have form allow me update of attributes of car. model car. form view car model shows attributes of car , allows me change them.
i better understand role of form model (jmodelform) in joomla. store values of form fields? thing believe understand xml field descriptions. make sense me.
then understand control flow in forms:
how invoke form? how can make accessible through url? how can make available add menu item dialog? have make new menuitemtype or somehow automatic? how can invoke form on particular model instance (a particular car)?
what entry point form handling? form model instantiated first? instantiates view?
i have not been able find documentation or tutorial describe process in detail. guess there nothing system architecture document describe these flows?
any appreciated.
(of course know there many extensions create form. have played breezingforms. seems not code generator executes forms inside of itself. didn't me learn more how forms work.)
my first question how joomla forms fit mvc paradigm. when @ example forms, e.g., in com_user, notice each form has model , view. appears strange me. according understanding of mvc, form should view (only). let's have used car marketplace application. there model describing car (color, horsepower, model, etc.). have form allow me update of attributes of car. model car. form view car model shows attributes of car , allows me change them.
i better understand role of form model (jmodelform) in joomla. store values of form fields? thing believe understand xml field descriptions. make sense me.
then understand control flow in forms:
how invoke form? how can make accessible through url? how can make available add menu item dialog? have make new menuitemtype or somehow automatic? how can invoke form on particular model instance (a particular car)?
what entry point form handling? form model instantiated first? instantiates view?
i have not been able find documentation or tutorial describe process in detail. guess there nothing system architecture document describe these flows?
any appreciated.
Comments
Post a Comment