You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Nextras\FormComponents\Fragments\Traits\BaseControlTrait in my class representing live form server validation, then occours error with method getControl() (origin in BaseControlTrait):
TypeError: Nette\Forms\Helpers::exportRules(): Argument #1 ($rules) must be of type Nette\Forms\Rules, null given
Seems like $this->rules variable is empty, when using this trait.
The text was updated successfully, but these errors were encountered:
Namespace of inherited TextInput is: Nette\Forms\Controls (like in your solution)
I am trying to reproduce your solution posobota-2014-server-validation in actual version of Nette, so everything is almost same, but when use BaseControlTrait, described error occurs.
When using Nextras\FormComponents\Fragments\Traits\BaseControlTrait in my class representing live form server validation, then occours error with method getControl() (origin in BaseControlTrait):
TypeError: Nette\Forms\Helpers::exportRules(): Argument #1 ($rules) must be of type Nette\Forms\Rules, null given
Seems like $this->rules variable is empty, when using this trait.
The text was updated successfully, but these errors were encountered: