imgTag

Navigation:  Development > Function Reference > Helpers > Html >

imgTag

Previous pageReturn to chapter overviewNext page

Create a image Tag.
 
App::Html()->imgTag(Src,[Param],[Option]);

 

Parameter

Description

Src

URL of the image

Param

Use to select image from file manager directory.

Options

HTML Attributes

 

See bellow example:
 
echo App::Html()
   ->imgTag(
       App::Config()->fileManagerUrl("/logo.jpg"),
       null,
      array("id"=>"bannar")
  );
/*
 Return
 <img src="http://localhost/works/app/projects/express/uploads/filemanager/logo.jpg" id="bannar"  />
*/
 
 
echo App::Html()->imgTag(
  "logo.jpg",
  array("mode"=>"filemanager"),
  array("id"=>"bannar")
)
/*
 Return
 <img src="http://localhost/works/app/projects/express/uploads/filemanager/logo.jpg" id="bannar"  />
*/