How to create page with different forms in view(yii2)?
For exmample: We have table "book" with different type('Horror', 'Travel', 'History'); Need to create method update for this books, but for every type need to show different type of form.
How to do it?
Is it correct?
public function actionUpdate($id)...