$validation -> add_rule('name', new str()->configure(array('field' => 'name', 'required' => true)));
Jednak dostaje blad:
Cytat
Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Jednak w klasie str mam tak:
public function __construct() { parent::__construct(); return $this; }
Zwracam this wiec powinno dzialac czy moze robie cos zle?Bo troche zamotany juz jestem