title: Yii Framework : difference attribute Labels depends on scenario?
body: <p>I have a User MODEL.</p>
  
  <p>What if a want difference set of attribute Labels, in Case of Login &amp;&amp; Change Password ?</p>
  
  <p><img src="https://i.stack.imgur.com/b75fJ.png" alt="enter image description here"></p>
  
  <p>By the way, Is there some thing like this, which I can use it inside the function of Yii's MODEL ?</p>
  
  <pre><code>switch($this-&gt;scenario ){
  
      case 'A':
          doThis();
      case 'B':
          doThat();
  }
  </code></pre>