title: CodeIgniter - Creating default object from empty value
body: <pre><code>A PHP Error was encountered
  
  Severity: Warning
  
  Message: Creating default object from empty value
  
  Filename: models/Modeltest.php
  
  Line Number: 13
  </code></pre>
  
  <p>I am trying to create an array in model and returning it to the controller but it is giving this warning ? Can any body help me out how to resolve it ?</p>
  
  <p>My ModelClass Code</p>
  
  <pre><code>    $list = Array();
      $list[0]-&gt;title = "first blog title";
      $list[0]-&gt;author = "author 1";
  
      $list[1]-&gt;title = "second blog title";
      $list[1]-&gt;author = "author 2";
  
      return $list;
  </code></pre>
  
  <p>My Contoller Class Code</p>
  
  <pre><code>    $this-&gt;load-&gt;model("modeltest");
      print_r($this-&gt;modeltest-&gt;get_articles_list());
  </code></pre>