yii2-images
yii2-images copied to clipboard
После обновления getUrl создает странную ссылку
После обновления getUrl создает странную ссылку в итоге ссылка несуществует
Например
/5/images/image-by-item-and-alias?item=Slider1&dirtyAlias=16a1585d57-1_2048x490.jpg
Я так понимаю первая цифра это id материала
А вот getPath работает нормально
На текущем комите (ac4e15f2fdd01019c3c2edd2ba90e71138370dc3) не работает. Проблема осталась
I have the same issue - it doesn't work for me on current mainline with Yii2 v. 2.0.13.1.
It generates invalid image url request to which fails with 404.
Url sample: /114/images/image-by-item-and-alias?item=Advert4690180565777482888&dirtyAlias=9947f6d2ab-1.jpg
I think here was broken module behavior. I added to urlManager rule '<id:([0-9])+>/images/image-by-item-and-alias' => 'yii2images/images/image-by-item-and-alias'
and it seems to be working... But I'm not sure this is a good approach.
P.S. I think changes like this must be marked in documentation!
Hello, i have a seem problem like /2/images/image-by-item-and-alias?item=Product4&dirtyAlias=368da602e2-1.png
, how to fix this? I very need it, help please
Same problem :(
quick fix is to change '/'.$this->getPrimaryKey().'/images/image-by-item-and-alias',
to '/yii2images/images/image-by-item-and-alias',
or back to '/'.$this->getModule()->id.'/images/image-by-item-and-alias',
in vendor\costa-rico\yii2-images\models\Image.php
Same problem with getUrl (). Let's finally do this shit.
Same problem :( quick fix is to change
'/'.$this->getPrimaryKey().'/images/image-by-item-and-alias',
to'/yii2images/images/image-by-item-and-alias',
or back to'/'.$this->getModule()->id.'/images/image-by-item-and-alias',
invendor\costa-rico\yii2-images\models\Image.php
Thanks you. Helped to fix this problem.
Получается только vendor\costa-rico\yii2-images\models\Image.php нужно править '/'.$this->getPrimaryKey().'/images/image-by-item-and-alias', меняем на '/'.$this->getModule()->id.'/images/image-by-item-and-alias', но для yii advanced приходится для вывода все же использовать filePath