public function link($url, $content = '', $options = [], $safe = false)
    {
        if (is_null($content)) {
            $content = $url;
        }

        return '<a href="'.$this->_generator->generateUrl($url).'"'.self::attributes($options).'>'.self::encode($content, $safe).'</a>';
    }
public function link($url, $content = '', $options = [], $safe = false)
    {
        if (is_null($content)) {
            $content = $url;
        }

        return '<a href="'.$this->_generator->generateUrl($url).'"'.self::attributes($options).'>'.self::encode($content, $safe).'</a>';
    }
public function link ( $ url , $ content = '' , $ options = [ ] , $ safe = false ) { if ( is_null ( $ content ) ) { $ content = $ url ; } return '<a href="' . $ this -> _generator -> generateUrl ( $ url ) . '"' . self :: attributes ( $ options ) . '>' . self :: encode ( $ content , $ safe ) . '</a>' ; }
Generates an anchor tag.

@param string $url
@param string $content
@param array  $options
@param bool   $safe

@return mixed
Generates an anchor tag .