title: How to set auth variable in zend framework
body: <p>We are developing a site using ZendFrame work.</p>
  
  <p>We need to set a auth variable(role) to manage user-type.</p>
  
  <p>For that we use a variable <code>this-&gt;view-&gt;auth-&gt;getIdentity()-&gt;role</code> to manage user-type.</p>
  
  <p>In one chase we are trying to assign the user-type statically. </p>
  
  <p>What is the code to assign the auth variable 'role'.</p>
  
  <p>We tried with <code>this-&gt;view-&gt;auth-&gt;getIdentity()-&gt;role = 'test'</code>, but it through warning.</p>