title: Trying to get property of non-object in Zend Framework 1.11 Application
body: <p>I'm trying to create a table of information in a database query using Zend Framework 1.11, Zend_Db, and Zend_Db_Select.</p>
  
  <p>Initially, I went about this by instantiating a new instance of my table and using $table->select().</p>
  
  <p>However, when I went to JOIN it to another table, I got an error message that I wasn't able to JOIN using this select() method. After doing some research, I found that I had to call the select() method off of my default adapter if I wanted to do this JOIN. Seemed straightforward.</p>
  
  <p>At this point, I have a model, a controller, and a view, but I think something is getting "lost in translation" between my Controller &amp; my View.</p>
  
  <p>Here is the model (inside Application_Model_DbTable_ActivityRequest):</p>
  
  <pre><code>public function getAllActivityRequests()
  {
  
          $db = $this-&gt;getDefaultAdapter();
          $select = $db-&gt;select();
  
          $select-&gt;from('activityrequest');
          $select-&gt;where('isDeleted = ?','N');
          $select-&gt;where('ReqType &lt;&gt; ?','Purchase Product');
          $select-&gt;order('ReqTime DESC');
  
          $query = $select-&gt;query();
          $row = $query-&gt;fetchAll();
  
          return $row;
  }
  </code></pre>
  
  <p>And the Controller (Admin Controller):</p>
  
  <pre><code>public function getWorkAction()
  {
  
      $table = new Application_Model_DbTable_Activityrequest();
  
      $row = $table-&gt;getAllActivityRequests();
  
      $this-&gt;view-&gt;activityrequests = $row;
  
  }
  </code></pre>
  
  <p>And (relevant part of)the View (admin/get-work):</p>
  
  <pre><code>&lt;?php foreach($this-&gt;activityrequests as $activity): ?&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;?= $activity-&gt;CustomerID; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?= $activity-&gt;ReqType; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?= $activity-&gt;ReqTime; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?= $activity-&gt;PickupTime; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?= $activity-&gt;AddressID; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?= $activity-&gt;Notes; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?= $activity-&gt;HeardAbtUs; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?= $activity-&gt;isDeleted; ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php endforeach; ?&gt;
  </code></pre>
  
  <p>When I do a var_dump of $row in both my model and my controller, I see the array that I'm trying to pass to the view. As soon as I get to the view, though, I get this error on a "non-object." </p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks!</p>