'NULL'], [['CITES_code'],'default','value'=>'not registered'], [['Latitude'], 'number', 'min' => -90, 'max' => 90], [['Longitude'], 'number', 'min' => -180, 'max' => 180], ]; } public function attributeLabels(){ return [ 'IPEN_member' => 'IPEN Member' ]; } /** * @inheritdoc */ public function scenarios() { // bypass scenarios() implementation in the parent class return Model::scenarios(); } /** * Creates data provider instance with search query applied * * @param array $params * * @return ActiveDataProvider */ public function search($params) { $query = InstitutionForm::find(); $dataProvider = new ActiveDataProvider([ 'query' => $query, /* 'sort' => [ 'defaultOrder' => [ 'dateOfJoining' => SORT_DESC, ] ],*/ ]); $this->load($params); if (!$this->validate()) { return $dataProvider; } return $dataProvider; } }