Hi
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
Page 1 of 1
Absolute Path For Form Actions
#2
Posted 11 December 2012 - 05:29 AM
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.
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.
Share this topic:
Page 1 of 1

Help













