I’m trying to use ajax and partialRender to insert new form elements into my page. I’m failing because I only know how to use drop downs with “$form->dropDownList($model,” etc. In the file that I’m trying to partially render, $form isn’t defined.
I tried using CHtml::dropDownList but then I get an error of "Object of class MyClass could not be converted to string".
I also tried “$this->widget(‘CActiveForm’)->dropDownList($model” but that adds a whole form into my html that I don’t need.
I just want a simple dropdown list that I can populate with CHtml::ListData in a page on its own so I can renderpartial it into my existing form.
Any suggestions?
Thanks