I am doing a php project using yii.
I want to resize an image according to user's device.
I am using this code segment to render image:
if($deal->imageBin)
app()->controller->worklet('deal.slideshow',array('deal' => $deal, 'scaleTo'=>300));
'scaleTo'
is a variable for enter width manual, but I want to use value from device screen width.
can do this using jquery?