2
저는 yii2의 초보자입니다. 나는 다음 오류를주고, 내 프로젝트에 yii2 수출 메뉴를 설치 한 = 클래스 'kartik \ 대화 \ 대화는'다음 을 찾을 수없는 지금은 정렬 오류를알 수없는 속성 설정 : yii grid GridView :: export
Setting unknown property: yii\grid\GridView::export
수있는 사람의 도움을주고있다 yii2 dialod 위젯도 설치 그거야?
오류가
Unknown Property – yii\base\UnknownPropertyException
Setting unknown property: yii\grid\GridView::export
in C:\xampp\htdocs\yii2-my-app\vendor\yiisoft\yii2\base\Component.php at line 201
192193194195196197198199200201202203204205206207208209210 $behavior->$name = $value;
return;
}
}
if (method_exists($this, 'get' . $name)) {
throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::' . $name);
}
throw new UnknownPropertyException('Setting unknown property: ' . get_class($this) . '::' . $name);
}
/**
* Checks if a property is set, i.e. defined and not null.
* This method will check in the following order and act accordingly:
*
* - a property defined by a setter: return whether the property is set
* - a property of a behavior: return whether the property is set
* - return `false` for non existing properties
2. in C:\xampp\htdocs\yii2-my-app\vendor\yiisoft\yii2\BaseYii.php at line 529 – yii\base\Component::__set('export', ['fontAwesome' => true])
수출 메뉴 위젯을 사용할 수 있습니다 오류 만이 아닙니다. 당신이보고있는 유일한 것은 그것이 실행중인'GridView'가'export' 속성을 가지고 있지 않다는 것입니다. 아마도 다른 GridView 위젯을 설치 했는데도이 'export' 매개 변수가있는 새 Yui2 GridView를 호출하는 대신 원래 Yii2 GridView를 호출합니다. –
네가 맞다. yii2 dynagrid 위젯을 설치하여 문제를 해결했다. – Darsh