* $element=$collection['username']; * $collection['username']=array('type'=>'text', 'maxlength'=>128); * $collection['password']=new CFormInputElement(array('type'=>'password'),$form); * $collection[]='some string'; *