linkTag

Navigation:  Development > Function Reference > Helpers > Html >

linkTag

Previous pageReturn to chapter overviewNext page

Create Html link.
 
App::Html()->linkTag(Src,Link Text,[Option]);

 

Parameter

Description

Src

Link URL

Link Text

Text to display in link

Options

HTML Attributes

 

See bellow example:

 

echo App::Html()
    ->linkTag(
       App::Config()->baseUrl(),
        "Home Page",
        array(
            "title"=>"Home Page"
        )
    );
 
/* 
Return value 
<a href="http://localhost/works/app/projects/express"  title="Home Page" >Home Page</a>
*/