Answer the question
In order to leave comments, you need to log in
How to display link data from Active Record?
representation code, the name of the desired field of the table displays, and if you go through $annotation->link_name_c_other_db->field_name ($annotation->authors->author_name), then nothing is displayed
by inserting into the forich loop and just echo - nothing is displayed (because the value = null )
Answer the question
In order to leave comments, you need to log in
<?php foreach ($ant->authors as $author) { ?>
<?= $author->author_name ?>
<?php } ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question