framework/utils/CFormatter.php
public function formatUrl($value)
	{
		$url=$value;
		if(strpos($url,'http://')!==0 && strpos($url,'https://')!==0)
			$url='http://'.$url;
		return CHtml::link(CHtml::encode($value),$url);
	}
public function formatUrl($value)
	{
		$url=$value;
		if(strpos($url,'http://')!==0 && strpos($url,'https://')!==0)
			$url='http://'.$url;
		return CHtml::link(CHtml::encode($value),$url);
	}
public function formatUrl ( $ value ) { $ url = $ value ; if ( strpos ( $ url , 'http://' ) !== 0 && strpos ( $ url , 'https://' ) !== 0 ) $ url = 'http://' . $ url ; return CHtml :: link ( CHtml :: encode ( $ value ) , $ url ) ; }
Formats the value as a hyperlink.
@param mixed $value the value to be formatted
@return string the formatted result
Formats the value as a hyperlink .