Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A plugin developer is a special type of user. By default he should operate in the same constrains of the previous user types. But, he should have the ability to omit or override them in a explicit manner.

This is a generally accepted MVC architectural pattern. As our system is CRUD orientated the MVC pattern looks a little different in qcadoo:

MVCqcadoo
ModelModel XML Definitions
ViewView XML Definitions, View hooks
ControllerModel hooks, Business methods

Validation

Generally it should be done on the server in model hooks. It can never be done only in GUI.  View hooks aren't sufficient, because they will never run for an third party application which uses an integration API. Validation in the GUI layer can be only implemented to supplement the server side validation with a better user  interaction.