• Parameter(s):
    • $col_name: Colume name
    • $base_Url: Optional. Base URL to image (added in version 5.0)
  • Description:
    • Display as image for a data field in data grid. The optional second parameter is added in version 5.0.  It specifies the base URL/target for all relative URLs to images file.
  • Example:

Assuming the productImag value is “abc.jpg“, the following will render a img tag similar to <img src=”/images/abc.jpg”>. The 2nd parameter “/images/” form the base URL to the “abc.jpg”

$dg -> set_col_img("productImage", "/images/");