Option to allow createUrl to make full url

It would be nice if createUrl could create FULL URL's and not just relative urls

Prefix the relative URL with Yii::app()->request->hostInfo.

You don't want to use absolute URLs everywhere. Could you give some such examples?

e.g. When generating registration confirmation emails, the url in the mail must be absolute.

Greetings from Hamburg / Germany

  • rojaro -

Although such usage is still not common enough, I added createAbsoluteUrl() to save trouble.  ;)

Thanks ;)

Karma++

Quote

Prefix the relative URL with Yii::app()->request->hostInfo.

You don't want to use absolute URLs everywhere. Could you give some such examples?

I also need it in OpenId :)

Is there any easy way to generate all paths absolute just by making a change in configuration file? Most probably not, so what functions of framework should be corrected to force whole app using absolute paths?

I'm developing application for other API framework, which is parsing output from my app and its relative paths are no longer working… Form action path, assets script paths and so on.

What would be best approach on doing this? Replacing of createUrl with createAbsoluteUrl based on config variable? What are the other functions, for assets paths e.g.?

J.