1. Use UTF-8 2. CSRF 3. POST as array data 4. REST Hacking 5. Data Injection Order 6. Feedback "Forms: Best Practices" by Kevin Dees // TypeRocket // Robojuice
namespace App; class Form { public $model; public $method; public $action; public $group; public $errors; function __construct( $model, $method, $action, $group, $errors ) { $this->model = $model; $this->method = $method; $this->action = $action; $this->group = $group; $this->errors = $errors; } } "Forms: Best Practices" by Kevin Dees // TypeRocket // Robojuice
namespace App; class Field { public $form; public $name; public $value; public $label; function __construct($name, $form) { $this->name = $name; $this->form = $form; $this->value = load_value($name, $this->form->model); } } "Forms: Best Practices" by Kevin Dees // TypeRocket // Robojuice