135
{
Yii::$app->user->identity->accessAdminOnly;
$dataProvider = new ActiveDataProvider([
'query' => Service::find(),
]);
return $this->render('index', [
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single Service model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
Yii::$app->user->identity->accessAdminOnly;
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new Service model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
Yii::$app->user->identity->accessAdminOnly;