return $this->render('index', [
'model' => $model,
]);
return $this->renderPartial('index', [
'model' => $model,
]);
$sub_sections = Sections::findAll([
'parent_id' => \Yii::$app->request->post()['delete_section_id']
]);
$sub_sections->delete();