$masters = Master::find()->select('id' => '1')->where('rost')->one();
— что означает эта конструкция?$master = Master::findOne(1);
<?= $master->rost ?>
$masters = Master::findAll(['rost' => 1]);
<?php foreach ($masters as $master): ?>
<?= $master->rost ?>
<?php endforeach ?>
::before
или ::after
:<ul>
<li><span class="number">1</span>Товар</li>
<li><span class="number">2</span>Товар</li>
<li><span class="number">3</span>Товар</li>
</ul>
.number::after {
content: "........................";
}
border-bottom
:<ul class="menu">
<li>1<span class="dots"></span>Товар</li>
<li>2<span class="dots"></span>Товар</li>
<li>3<span class="dots"></span>Товар</li>
</ul>
.menu > li {
display: flex;
}
.dots {
flex-grow: 1;
border-bottom: 2px dotted black;
}
$this->params['isHome'] = true;
<?php if (isset($this->params['isHome'])): ?>
<header>
...
</header>
<?php else: ?>
<header>
...
</header>
<?php endif ?>
<?php if (!isset($this->params['isHome'])): ?>
<header>
...
</header>
<?php endif ?>
echo LinkPager::widget([
'pagination' => $pagination,
'maxButtonCount' => 7,
'firstPageLabel' => 'Начало',
'lastPageLabel' => 'Конец',
]);
SELECT entries.id, entries.entry, GROUP_CONCAT(DISTINCT readings.reading SEPARATOR '; ') AS readings, GROUP_CONCAT(DISTINCT meanings.meaning SEPARATOR '; ') AS meanings
FROM entries
LEFT JOIN (readings, meanings) ON (readings.entry_id = entries.id AND meanings.entry_id = entries.id)
GROUP BY entries.id