public static function validHostURL($targetUrl) 
	{
		$req = Yii::app()->request;
		$url = ($req->port == 80? 'http://': 'https://') . $req->serverName;
		
		if(substr($targetUrl, 0, 1) != '/')
			$targetUrl = '/'.$targetUrl;
				
		return $url = $url.$targetUrl;
	}
public static function validHostURL($targetUrl) 
	{
		$req = Yii::app()->request;
		$url = ($req->port == 80? 'http://': 'https://') . $req->serverName;
		
		if(substr($targetUrl, 0, 1) != '/')
			$targetUrl = '/'.$targetUrl;
				
		return $url = $url.$targetUrl;
	}
public static function validHostURL ( $ targetUrl ) { $ req = Yii :: app ( ) -> request ; $ url = ( $ req -> port == 80 ? 'http://' : 'https://' ) . $ req -> serverName ; if ( substr ( $ targetUrl , 0 , 1 ) != '/' ) $ targetUrl = '/' . $ targetUrl ; return $ url = $ url . $ targetUrl ; }
Valid target api url, if application ecc3 datacenter is accessed from other place
Defined host url + target url
Valid target api url if application ecc3 datacenter is accessed from other place Defined host url + target url