A
A
Alexander2017-01-15 22:40:19
Yii
Alexander, 2017-01-15 22:40:19

How to formulate link for Saving Relation?

can you help with links? I don’t understand from the docks what to indicate there, connection, fields, model name ???
because I fill in the fields through the Books object
model:
5b6e92aed93e49199c5ad9d09db563d5.png
controller:
dd23d2ac50154744884c5ad9a08746c5.png
view:
4f77882c4ead4277b99f5142433dace8.png
if the fields are accessed through links, it turns out like this:
books->genre
books->isbn (books->serie->book)
books->book_name
books->serie->serie_name
books- >book_year
books->serie->author (will take value from authors->author_name)
please help link om to save books->serie->book

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-01-15
@koshalex

Good evening.
Working with multiple models

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question