title: Phalcon: Notice Undefined Variable in the Scaffold-generated views (model and the controller are fine)
body: <p>I have generate a model using the <code>scaffold</code> comment, and here's part the model, just to make sure that the database is connected:</p>
  
  <pre><code>&lt;?php
  
  class Member extends \Phalcon\Mvc\Model
  {
  
      /**
       *
       * @var integer
       */
      public $id;
  
      /**
       *
       * @var string
       */
      public $firstname;
  
      /**
       *
       * @var string
       */
      public $surname;
  
      /**
       *
       * @var string
       */
      public $membertype;
  
      /**
       *
       * @var string
       */
      public $dateofbirth;
  
      /**
       * Initialize method for model.
       */
      public function initialize()
      {
          $this-&gt;setSchema("db_mvq");
          $this-&gt;setSource("Member");
      }
  </code></pre>
  
  <p>Then I get these errors:</p>
  
  <p><a href="http://prntscr.com/n907hb" rel="nofollow noreferrer">http://prntscr.com/n907hb</a></p>
  
  <p>Every time I open the search page created by the <code>scaffold</code> command, here's the part of the view concerned with this:</p>
  
  <pre><code>&lt;?php foreach ($page-&gt;items as $member): ?&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;?php echo $Member-&gt;id ?&gt;&lt;/td&gt;
              &lt;td&gt;&lt;?php echo $Member-&gt;firstname ?&gt;&lt;/td&gt;
              &lt;td&gt;&lt;?php echo $Member-&gt;surname ?&gt;&lt;/td&gt;
              &lt;td&gt;&lt;?php echo $Member-&gt;membertype ?&gt;&lt;/td&gt;
              &lt;td&gt;&lt;?php echo $Member-&gt;dateofbirth ?&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I don't understand. What's wrong here?</p>
  
  <p>Thanks for your replies. </p>