sjaakp / yii2-illustrated-behavior

Adds image to ActiveRecord
http://www.sjaakpriester.nl/software/illustrated
MIT License
43 stars 17 forks source link

Please add a getImgUrl() method #9

Closed amlopezalonso closed 8 years ago

amlopezalonso commented 9 years ago

Though getImgHtml is very useful I think this could be enhanced adding a getImgUrl method for common linked thumbnails to a bigger image such as:

Html::a($model->getImgHtml($size=100), $model->getImgUrl(), ['title' => $model->nombre, 'target' => '_blank']);

Thanks a lot for your excellent work!

sjaakp commented 8 years ago

Done! However, I've called it getImgSrc().