Get field value directly from inside views-view-list.tpl.php Inside views-view-list.tpl.php there is a loop like this:

&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
  &lt;li class="&lt;?php print $classes_array[$id]; ?&gt;"&gt;&lt;?php print $row; ?&gt;&lt;/li&gt;
&lt;?php endforeach; ?&gt;


I want to be able to access the actual values of the fields inside each item, rather than passing off the rendering of the html to views-view-fields.tpl.php.  

In pseudocode, I would like to do this (THIS CODE DOES NOT WORK):

&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
  &lt;?php print $row-&gt;$fields['field_my_field_name']; ?&gt;
&lt;?php endforeach; ?&gt;

&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
  &lt;?php print $row-&gt;$fields['field_my_second_field_name']; ?&gt;
&lt;?php endforeach; ?&gt;


Would I actually use the $row object, or would I use something else?
took me a while to work this out so sharing the solution i used.

&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
    &lt;?php print $view-&gt;render_field('field_my_field_name', $id);?&gt;
&lt;?php endforeach; ?&gt;

&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
    &lt;?php print $view-&gt;render_field('field_my_second_field_name', $id);?&gt;
&lt;?php endforeach; ?&gt;