Safeattributes Does Not Work

Hi

I have model

public function safeAttributes()

{

return array(‘d_html’ /,‘d_keywords’/ );//d_keywords commented

}

after saving the d_keywords value is updated

$meta->attributes=$_POST[‘Description’];// here array(‘d_html’=>‘value’,‘d_keywords’=>‘not need to update’)

$meta->save();

The database recorded

array(‘d_html’=>‘value’,‘d_keywords’=>‘not need to update’)

What am I doing wrong?

If I am not mistaken, method safeAttributes() is not used in 1.1 version of framework anymore.

What is your version of Yii you work with?

Problem solved.

I use rules() in model

array(‘field1, field2, etc’, ‘safe’),