title: How to call a model function in view Yii?
body: <p>I have a public function in model Yii:</p>
  
  <pre><code>public function test() {
      echo 'I am working';
  }
  </code></pre>
  
  <p>Now I want to call this function on view Yii. I wolud like to go through via controller instead of directly calling that function on view Yii.</p>
  
  <p>So how can I call the function on view Yii? and what I have to do with controller before I call it on view Yii?</p>