finish feature #26

This commit is contained in:
2015-09-19 16:07:52 +02:00
parent fd181e580f
commit 7a48ac9d51
3 changed files with 12 additions and 1 deletions

View File

@@ -105,7 +105,6 @@ class UserController extends Controller
*/
public function actionDelete($id)
{
// $this->findModel($id)->delete();
$user = $this->findModel($id);

View File

@@ -47,6 +47,8 @@ class UserSearch extends User
'query' => $query,
]);
$query->andWhere(['status' => User::STATUS_ACTIVE]);
$this->load($params);
if (!$this->validate()) {
@@ -55,6 +57,8 @@ class UserSearch extends User
return $dataProvider;
}
$query->andFilterWhere([
'id' => $this->id,
'status' => $this->status,

View File

@@ -201,4 +201,12 @@ class User extends ActiveRecord implements IdentityInterface
}
return $result;
}
public function attributeLabels(){
return [
];
}
}