Articles tagged with "chtml::image"X
Displaying 1-1 of 1 result(s).

Provide SVG when the browser supports it, else PNG (using CHtml::image overload)

Created 3 years ago by le_topTips0 comments – viewed 4,823 times – ( +1 / -1 ) – version 1.1
Modern browsers support SVG, older browsers do not. This replacement for CHtml::image() allows you to handle to propose SVG in an efficient way with PNG as a fallback.