Codeigniter URL helper anchor()

Codeigniter URL helper anchor()

Syntax:

Anchor(href, text, attribute)

Parameters:
href – The path you want to link to.
text – The message you want use as the title to the link variable
attribute – Specifies attributes in the key/value pair and is applied as attributes to the created tag.

Return type:
string.

Description:
Used to create a hyperlink tag

Example:

$attribute = Array ("id" => "Anchor", "Class" => "Anchor"); 
echo Anchor ("Product / Form", "Create", $attribute);

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.