فتحات العرب Joomla! • Index page: Joomla! 2.5 Coding • Re: problem with sending form to module

Friday, October 10, 2014

Joomla! 2.5 Coding • Re: problem with sending form to module

If a module would be able to receive the input variables from submitted form, it would be called in terms of Joomla architecture a component, not a module. When a form is posted, the request is processed, starting from index.php, and then routed to some component. Modules are just piggybacked to components through templates and menu items.



The code in a module could of course use the Joomla methods and access the posted variables containing the values from the input fields of the form, but this design would be rather fragile because it relies on the assignment of the module to a page containing the component which is included as the action attribute of the form.

Statistics: Posted by toivo — Fri Oct 10, 2014 7:50 pm








via Joomla! http://ift.tt/1slWA9V

No comments:

Post a Comment