protected static function actionActive() { $brand = new BrandModel($_GET['id']); $brand->active = $brand->active ? '0' : '1'; $brand->save(); self::redirect(App::getLink('AdminBrands')); }