Answer the question
In order to leave comments, you need to log in
Question about additional load on the server?
Gentlemen, I have an extension of nested sets, But this is not important. For example, when I request a train in search:
<?foreach($row->getImages()->all() as $image):?>
<li class="<?if($row->getImages()->all()[0] == $image):?>active<?endif;?>"> blahblah</li>
//... и еще до кучи
if(end($row->getImages()->all()) == $image)) //...
<?endforeach;?>
$result = $row->getImages()->all() ;
Answer the question
In order to leave comments, you need to log in
How are you doing?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question