A
A
Alexander2016-11-24 19:48:07
MySQL
Alexander, 2016-11-24 19:48:07

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 )
b291f6f792964c2ead3e193c4575a500.png
1394d074db45465dbd2b4589396f8fc6.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2016-11-24
@koshalex

<?php foreach ($ant->authors as $author) { ?>
    <?= $author->author_name ?>
<?php } ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question