title: How to call a php variable (not from a entity class) into a twig file
body: <p>i want to call a php variable into a twig file.</p>
  
  <p>suppose in my function i am getting "$usrname", so how can i return the value in the twig file ---</p>
  
  <pre><code>public function helloTestAction(){
      $usrname = $user-&gt;getUserDetails()-&gt;get()-&gt;getLatestName();
      // UserDetails is the entity class name
  .........
  } 
  </code></pre>
  
  <p><strong>Suppose i get the answer "Hello Test", so now how can i return this value into my twig file.</strong></p>
  
  <p>So how can i get the "$usrname" in my twig file.</p>
  
  <p>Anyone knows any solution for this problem. Thanks in advanced.</p>