Answer the question
In order to leave comments, you need to log in
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:
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question