Validation

Goal

Achieve In-Model validation! Move validation from Controller to Model. This makes especially sense when working with external APIs ..

Situation

IS

MUST

Steps

  1. Concept how to use https://github.com/dwightwatson/validating
  2. Cleanup prepare_rules() and rules()
    Inside prepare_rules() MUST only be content which relies on HTML form $data input. All other stuff (especially global rules building) MUST be done in model context in rules()