Read the documentation. There are almost all the answers there.
https://codeigniter4.github.io/userguide/libraries/validation.html#redirect-and-validation-errors
Add helper(['form']);
in Home::index and use in template validation_show_error('username')
There are no property of $this->validation
, there is a $this->validator
but it is created after the validate()
call.