public function beforeLoad() { parent::beforeLoad(); // define the validation rules and there is error messages }
public function beforeLoad() { parent::beforeLoad(); self::$rendered = true; // define the validation rules and there is error messages }