console generate-user
This commit is contained in:
@ -162,17 +162,6 @@ class UserCardController extends Controller
|
||||
return $this->redirect(['index']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all UserCard models.
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionGenerate()
|
||||
{
|
||||
$massage = UserCard::generateUserForUserCard();
|
||||
return $this->render('generate', ['massage' => $massage]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Finds the UserCard model based on its primary key value.
|
||||
* If the model is not found, a 404 HTTP exception will be thrown.
|
||||
|
@ -161,8 +161,8 @@ class UserCard extends \common\models\UserCard
|
||||
}
|
||||
}
|
||||
|
||||
if ($user_card_array) return "Данные успешно сгенерированы";
|
||||
else return "Нет данных для генерации";
|
||||
if ($user_card_array) return "data generated successfully";
|
||||
else return "no data to generate";
|
||||
}
|
||||
|
||||
public static function getParameter($params, $key)
|
||||
|
@ -16,7 +16,6 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<p>
|
||||
<?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a('Сгенерировать пользователей', ['generate'], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user