I know there must be a way to do this cleanly in Yii. I have a form with radio buttons. When one is selected and the select button clicked, I send an Ajax request to the controller.
That's where I'm lost. The choice of radio button determines which variety of form should replace the original form…a continuation. Outside of Yii, I would do an include of a file containing the next form based on the radio button, and just echo that include. Here, however, the new form will have CHtml calls, and needs to be rendered, etc. I could do the processing as a function in the controller, even with a select case… but then what? I don't see how the normal form render can be replaced in such a way as to pass the form back in the ajax response.