set_col_img()

  • 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 . The 2nd parameter “/images/” form the base URL to the “abc.jpg”

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

No related content found.