Monday, February 11, 2013

How to change domain name in Yii's createAbsoluteUrl function?


When you face a problem to change domain name in Yii::app()->createAbsoluteUrl() function, just use
Yii::app()->getRequest()->setHostInfo('http://example.com');

5 comments:

  1. Generally the presence of several of these kinds of domain name registries has caused the price of domain name registration to go down. Creative Company Names

    ReplyDelete
  2. A final note about domain name registration; there are plenty of domain name registration companies out there, all eager and equally willing to register your new name. Namecheap dedicated server coupon

    ReplyDelete
  3. What programming dialect would you say you will use for our site? Will you be utilizing FrontPage? On the off chance that so you will require a web have that has FrontPage augmentations. Domain Name

    ReplyDelete
  4. Another really important aspect that needs to be addressed while launching a business website is the web hosting aspect as that is what makes your website accessible via internet. discounts on domain registration

    ReplyDelete
  5. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work. Get more info about cheap domain name registration

    ReplyDelete