$val) debug($fname); return $schema ->addField('name', 'string') ->addField('email', ['type' => 'string']) ->addField('body', ['type' => 'text']); } */ /* public function validationDefault(Validator $validator) { $validator->add('name', 'length', [ 'rule' => ['minLength', 5], 'message' => 'A name is required' ])->add('email', 'format', [ 'rule' => 'email', 'message' => 'A valid email address is required', ]); return $validator; } */ protected function _execute(array $data) { // Send an email. return true; } }