Hi,
i am getting the following error
Setting unknown property: <ModelNameHere>::startAttribute
with startAttribute and endAttribute configured like this
So. As far as i understand it $attr is either "startAttribute" or "endAttribute". Both are public properties within the DateRangePicker. But in line 491
$this->model->$attr = $value;
the model is expected to have properties named exactly like that, ignoring the configuration and content of the widgets properties.
My guess is it should read:
$this->model->{$this->$attr} = $value;
... at least that works for me.
Hi, i am getting the following error
Setting unknown property: <ModelNameHere>::startAttribute
with startAttribute and endAttribute configured like thisI traced the error to lines 484 of the DateRangePicker.php:
So. As far as i understand it $attr is either "startAttribute" or "endAttribute". Both are public properties within the DateRangePicker. But in line 491
$this->model->$attr = $value;
the model is expected to have properties named exactly like that, ignoring the configuration and content of the widgets properties. My guess is it should read:$this->model->{$this->$attr} = $value;
... at least that works for me.Cheers Kai