Absolute Path For Form Actions


Does anybody know the best way to change form action urls to absolute urls,

I’m trying to create mirrors from my original website, and in order to do that I need all of my form actions to be absolute, but I haven’t found a good way (which is not by changing my framework source code) to change form action urls

I would be thankful if anybody could help me

You may use createAbsoluteUrl() to form your urls.

If you use CHtml::beginForm(), then pass your url as the first parameter.

If you use CActiveForm, you may pass ‘action’ parameter to it with you absolute url.

If you need more common solution - extend CHtml or CActiveForm class to use (build) the action you need and use your own class to build form tag.

Thanks yugene,

I think I’ve gotta go with the second solution