# Feedback on Model Less forms as per official docs

**URL:** <https://discourse.cakephp.org/t/feedback-on-model-less-forms-as-per-official-docs/6717>\
**Category:** Uncategorized\
**Created:** [October 5, 2019, 11:20pm UTC](https://discourse.cakephp.org/t/feedback-on-model-less-forms-as-per-official-docs/6717 "2019-10-05T23:20:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jmacnz](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@Jmacnz](https://discourse.cakephp.org/u/Jmacnz)\
**Post date:** [October 5, 2019, 11:20pm UTC](https://discourse.cakephp.org/t/feedback-on-model-less-forms-as-per-official-docs/6717/1 "2019-10-05T23:20:41Z")

</div>

if you copy the code direct from the 3.8 manual for creating a model less contact form you get this error:

Fatal error: Access level to App\Form\ContactForm::validationDefault() must be public (as in class Cake\Form\Form) in /www/sites/cake-bare/wwwroot/src/Form/ContactForm.php on line 10

if you change this line:  
protected function validationDefault(Validator $validator)  
to this  
public function validationDefault(Validator $validator)

it works as instructed.

In version 4 you need to make a couple of changes  
change this  
protected function \_buildSchema(Schema $schema)  
to  
protected function \_buildSchema(Schema $schema): Schema

change this  
protected function validationDefault(Validator $validator)  
to this  
public function validationDefault(Validator $validator): Validator

and this  
protected function \_execute(array $data)  
to this  
protected function \_execute(array $data): bool

and again all is well.

Who / How do you advise that the docs are wrong?

---

<div class="post-metadata">

**Author:** ![robertpustulka](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@robertpustulka](https://discourse.cakephp.org/u/robertpustulka)\
**Post date:** [October 11, 2019, 10:30am UTC](https://discourse.cakephp.org/t/feedback-on-model-less-forms-as-per-official-docs/6717/2 "2019-10-11T10:30:18Z")

</div>

Hi!

Raise an issue here: [https://github.com/cakephp/docs](https://github.com/cakephp/docs)

Thanks
