title: pass variables from controller to view in Yii
body: <p>I cannot use the variables specified in controller in the corresponding view. Here is my code:</p>
  
  <pre><code>public function actionHelloWorld()
      {
  
          $this-&gt;render('helloWorld',array('var'=&gt;'this is me'));
      }
  </code></pre>
  
  <p>In the helloWorld.php (view file):</p>
  
  <pre><code>&lt;h1&gt;Hello, World!&lt;/h1&gt;
  &lt;h3&gt;&lt;?php echo $var; ?&gt;&lt;/h3&gt;
  </code></pre>
  
  <p>It only prints out "Hello, World!", looks like $var is unaccessible in the view. Anyone?</p>