thanks rajith for your instant reply. but the problem is i am still using the inbuilt functions and unable to accomplish what i want
I have worked with all type of inbuilt funstions… but sadly this time with model->update() its not showing any errors. i tried this way also, model->update(true, array(‘the values i want 2 update’));
i tried all possible values… but still model->update is not working…
i tried with this also… var_dump($user->update()) it returns false. when i submit the form… $_POST[‘email’] also contains the value i wanted. but after all $user->update() is still not working.
CActiveRecord::update() method takes only one parameter (array $attributes=NULL) as per the documentation. Can you please provide the complete usage of the command in your application and show us the exact error that you get.
you should really call $user->save(false); instead of $user->update(); to see if it works (please note this will skip validation). Let me know if this works