List Info

Thread: Should I use Zend_OpenId's URL manipulation methods?




Should I use Zend_OpenId's URL manipulation methods?
user name
2008-05-05 16:13:41
Hi,

I want the absolute URL to the current website, however, the getBaseUrl() method of the request object returns a relative URL. So, I've found that Zend_OpenId, among other useful methods, includes the absoluteUrl() method.

However, of course Zend_OpenId isn't meant as a URL manipulation class. Thus, my question is: what would be considered best practice in this case?

Thanks,
--
Vincent
RE: Should I use Zend_OpenId's URL manipulation methods?
user name
2008-05-07 15:15:18
Ideally, the Request Object would implement a
getAbsoluteUrl() method.
 
 
OR you can use getBaseURL() along with
$_SERVER['SERVER_NAME']
 
 
--
Eric Marden
 


________________________________

	From: Vincent [mailto:imnotbgmail.com] 
	Sent: Monday, May 05, 2008 5:14 PM
	To: Zend Mailing List
	Subject: [fw-general] Should I use Zend_OpenId's URL
manipulation methods?
	
	
	Hi,
	
	I want the absolute URL to the current website, however,
the
getBaseUrl() method of the request object returns a relative
URL. So,
I've found that Zend_OpenId, among other useful methods,
includes the
absoluteUrl() method.
	
	However, of course Zend_OpenId isn't meant as a URL
manipulation
class. Thus, my question is: what would be considered best
practice in
this case?
	
	Thanks,
	-- 
	Vincent 


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )