A
A
alehandroWEB2018-07-20 20:24:30
Yii
alehandroWEB, 2018-07-20 20:24:30

How to make model link in yii2?

There is a recipe model. In recipes, you need to add ingredients that are stored in another table and linked by id. The ingredient model has the following fields: id, product_id, recipe_id, quantity, and unit_id. On the page for creating/editing a recipe, it looks something like this:
5b5219c28da4c544830903.jpeg
The task is to add or delete a line with an ingredient right on the recipe page. Of course, you can come up with your own bike, but maybe there are some ready-made solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-07-20
@slo_nik

Good evening.
Everything is painted here .
Additionally .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question