Skip to content

Instantly share code, notes, and snippets.

@jibran
Last active December 10, 2015 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jibran/4437285 to your computer and use it in GitHub Desktop.
Save jibran/4437285 to your computer and use it in GitHub Desktop.
<?php
$link = new Link();
$link->text = 'foo';
$link->path = 'bar';
$link->attributes = new Attribute();
$link->language = LANGUAGE_NONE;
$link->html = TRUE;
$link->query = array('foo' => 'bar');
$link->fragment => 'foo-bar';
$link->absolute' => FALSE;
$link->alias => FALSE;
$link->prefix => '';
print $link; //<a href="/bar?foo=bar#foo-bar">foo</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment