<div class="last-entries-title">
<?php echo CHtml::link(truncateText($entries->getStrByLang('title'), 80), $entries->getUrl());?>
</div>
<div class="last-entries-title">
<p><?php echo CHtml::link(truncateText($entries->getStrByLang('title'), 80), $entries->getUrl());?></p>
<?php if($entries->image):?>
<div class="imagenews"><?php $src = $entries->image->getFullThumbLink(); ?>
<?php if($src) : ?>
<div class="entries-image-list">
<?php
$tagAlt = CHtml::encode($entries->getStrByLang('title'));
if (issetModule('seo') && isset($entries->image->image_seo) && $entries->image->image_seo->getStrByLang('alt')) {
$tagAlt = CHtml::encode($entries->image->image_seo->getStrByLang('alt'));
}
?>
<?php echo CHtml::link(CHtml::image($src, $tagAlt), array('class' => 'sxa')); ?>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
'checkboxOptions' => function ($model, $key, $index, $column) {
return ($model->someAttr == 5)?['checked'=>"checked"]:[];
}
'columns' => [
[
'attribute' => 'title',
'format' => 'html',
'value' => function($model, $key, $index) {
if(($index % 2) == 0){
return "я четная строка";
}else{
return "я сука не сильно четная";
}
}
],
" "
а у Вас
. Мало того, в переменной там вообще третий вариант может быть. <pre><?php print_r($arResult["DETAIL_TEXT"]); ?></pre>
что бы быть уверенным, что там нет еще спецсимволов каких-то, которых Вы не видите в html коде. $arr = Statprice::find()->all();
$from_date_collumn = ArrayHelper::getColumn($arr, 'from_date')
yii\web\UploadedFile::getInstance()
yii\web\UploadedFile::getInstances()
<?= $form->field($model, 'myAttribute[]')->fileInput();?>
<?= $form->field($model, 'myAttribute[]')->fileInput();?>
<?= $form->field($model, 'myAttribute[]')->fileInput();?>
<?= $form->field($model, 'myAttribute[]')->fileInput();?>
<?= $form->field($model, 'myAttribute[]')->fileInput();?>
<?= $form->field($model, 'myAttribute[]')->fileInput();?>
первый мой пример человек верстает каждую статью в IDE. во втором случае у майкрософт думаю есть какой то wysiwyg редактор,