src/Tag.php
public function linkTo( $path, $text, $is_local_path = true )
    {
        $url = $this->_di->getService( "url" );

        if ( $is_local_path )
        {
            $path = $url->get( $path );
        }

        $link = "<a href='$path'>$text</a>";

        return $link;
    }
public function linkTo( $path, $text, $is_local_path = true )
    {
        $url = $this->_di->getService( "url" );

        if ( $is_local_path )
        {
            $path = $url->get( $path );
        }

        $link = "<a href='$path'>$text</a>";

        return $link;
    }
public function linkTo ( $ path , $ text , $ is_local_path = true ) { $ url = $ this -> _di -> getService ( "url" ) ; if ( $ is_local_path ) { $ path = $ url -> get ( $ path ) ; } $ link = "<a href='$path'>$text</a>" ; return $ link ; }
Creates an HTML anchor tag using the Url Simox service

<code>
<p>Hello, my name is Simon. Click <?php $this->tag->linkTo( "/blog/", "here" ); ?> to read my blog!</p>
<p>Check out my <?php $this->tag->linkTo( "http://www.example.com/", "awesome website", false ); ?>!</p>
</code>

@param string $path
@param string $text
@param boolean $is_local_path
Creates an HTML anchor tag using the Url Simox service