/
Validation
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()
, multiple selections available,
Related content
Database
More like this
Tricks and code snippets
Tricks and code snippets
More like this
Form API
More like this
Test Workflow / Testflow
Test Workflow / Testflow
More like this
Architecture Guidelines
Architecture Guidelines
More like this
Create Demo Data
Create Demo Data
More like this