title: Alter variable directly or use a setter function?
body: <p>Which is best practice when setting a variable such as a page title tag from within the page controller?</p>
  
  <p>I have:</p>
  
  <pre><code>class About extends Controller {
  
  public function Index()
  {
      $this-&gt;view-&gt;pageTitle = 'test 123' ;
      $this-&gt;view-&gt;metaDescription = 'Description here' ;
      $this-&gt;view-&gt;metaKeywords = 'dog, cat, monkey' ;
      $this-&gt;view-&gt;render('about/about') ;
  }
  }
  </code></pre>
  
  <p>Or should I use a setter function like:</p>
  
  <pre><code>$this-&gt;view-&gt;setPageTitle('My Title') ;
  </code></pre>