public function link($routes, $url, $value = '', $attributes = array('class' => 'active'))
	{
		if(empty($value))
		{
			$value = $url;
		}

		$output = '<a href="'.$url.'"';

		if($this->is($routes))
		{
			$output.= $this->putAttributes($attributes);
		}

		$output.= '>'.$value.'</a>';

		return $output;
	}
public function link($routes, $url, $value = '', $attributes = array('class' => 'active'))
	{
		if(empty($value))
		{
			$value = $url;
		}

		$output = '<a href="'.$url.'"';

		if($this->is($routes))
		{
			$output.= $this->putAttributes($attributes);
		}

		$output.= '>'.$value.'</a>';

		return $output;
	}
public function link ( $ routes , $ url , $ value = '' , $ attributes = array ( 'class' => 'active' ) ) { if ( empty ( $ value ) ) { $ value = $ url ; } $ output = '<a href="' . $ url . '"' ; if ( $ this -> is ( $ routes ) ) { $ output .= $ this -> putAttributes ( $ attributes ) ; } $ output .= '>' . $ value . '</a>' ; return $ output ; }
Generate link with active state.

@param array $routes
@param string $url
@param string $value
@param array $attributes
@return string
Generate link with active state .