Call to a member function getImage() on a non-object
<?= $form->field($model, 'time_start')->widget(DateControl::className(),
['type' => DateControl::FORMAT_TIME]
) ?>
User-agent: Googlebot
Allow: /*.css*
Allow: /*.js*
Allow: /*.ttf*
Allow: /*.woff*
User-agent: Googlebot-Mobile
Allow: /*.css*
Allow: /*.js*
Allow: /*.ttf*
Allow: /*.woff*
<div id="gallery">
<img src="1.jpg" alt>
<img src="2.jpg" alt>
<img src="3.jpg" alt>
…
</div>
div#gallery {
display: -ms-flexbox;
-ms-flex-direction: column;
-ms-flex-wrap: wrap;
display: flex;
flex-direction: column;
flex-wrap: wrap;
height: 100vw;
font-size: 0;
}
div#gallery img {
width: 33.3%;
transition: .8s opacity;
}
<?=$form->errorSummary($model);?>
на <?=$model->getErrors();?>
и выводите в любом месте вёрстки.$img = imagine\Image::getImagine()->open(Yii::getAlias($fullName));
$size = $img->getSize();
$ratio = $size->getWidth()/$size->getHeight();
$width = 200;
$height = round($width/$ratio);
$box = new Box($width, $height);
$img->resize($box)->save($filePath.'/thumb/' . $fileName);
// OR:
imagine\Image::thumbnail($fullName,$width,$height)
->save($filePath.'/thumb/' . $fileName);