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
- Concept how to use https://github.com/dwightwatson/validating
- 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()