getTag

Navigation:  Development > Function Reference > Helpers > Html >

getTag

Previous pageReturn to chapter overviewNext page

Create HTML Tag.

 

App::Html()->getTag(Name,[Option]/[InnerHTML],[InnerHTML]);

 

Parameter

Description

Name

Html Tag name

Options

HTML Attributes

InnerHTML

HTML Code to place inside tag

 

See Bellow examples:

 

echo App::Html()->getTag("div","Hello World");
/*
  <div >Hello World</div>
*/
 
echo App::Html()->getTag("div",array("id"=>"mydiv"),"Hello World");
/*
  <div  id="mydiv" >Hello World</div>
*/