I’m experimenting with creating my own forms in html because I feel it gives me more control. I’ve created my form with fields like “fname” and “sname” etc. In Zend in order to send all the values to my model you can extract everything using:
I have changed the naming of my form fields to be compliant with how yii names them (in an array) so I have it working. I am still curious though. I can’t figure out how to use CHttpRequest. I thought this would give me what I want:
$param = CHttpRequest::getPost();
but it’s a non static method.
I’d be grateful if anybody could elaborate on the CHttpRequest. I’m also waiting for somebody to tell me that I absolutely shouldn’t make my own forms…
I won’t judge you too much for making your own forms… except that Yii’s active forms have SO MUCH more that you get for free (client/ajax/server validation, massive assignment, scenarios, etc). But anyway…
At this point my interest is academic more than anything else. I’ve played around more with yii’s forms and I think we can become friends after all. In order to use my own forms I can simply put the names of the fields into a format that is compatible with standard yii procedure.