title: Print array from class php
body: <p>I'm trying to print data from an array. The array is from a class. I'm getting </p>
  
  <pre><code>array(0) { }
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>Array ( [0] =&gt; header_index.php [1] =&gt; footer.php )
  </code></pre>
  
  <p>The code is:</p>
  
  <pre><code>&lt;?php
  class TemplateModel {
      public function getTemplate($template = "index"){
          switch($template){
              case "index":
                  $templateconfig = array("header_index.php","footer.php");
                  break;
          }
          return $templateconfig;
      }
  }
  $temodel = new TemplateModel(); 
  var_dump(get_object_vars($temodel));
  $temodel -&gt; getTemplate();
  ?&gt;
  </code></pre>
  
  <p>What i'm doing wrong? Thanks in Advance</p>