title: How to set attribute in yii model
body: <p>In my yii application. I write code as below:</p>
  
  <pre><code>OTP::model()-&gt;attributes['name'] = value;
  </code></pre>
  
  <p>But it doesn't work. Can anyone please explain why its not working?</p>