title: How to pass the variable from views.tpl.php to page.tpl.php?
body: <p>I need pass variable from views-view-unformatted.tpl.php to page.tpl.php.</p>
  
  <p>So the code of views-view-unformatted.tpl.php:</p>
  
  <pre><code>&lt;?php if (!empty($title)): ?&gt;
    &lt;h3&gt;&lt;?php print $title; ?&gt;&lt;/h3&gt;
  &lt;?php endif; ?&gt;
  &lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
    &lt;div&lt;?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?&gt;&gt;
      &lt;?php print $row; ?&gt;
      &lt;?php if(condition): ?&gt;
        &lt;?php $my_var = array('val_1','val_2','val_3'); ?&gt;
      &lt;?php endif; ?&gt;
    &lt;/div&gt;
  &lt;?php endforeach; ?&gt;
  </code></pre>
  
  <p>and in result I want something like this:</p>
  
  <pre><code>...
  &lt;div class="footer"&gt;
    foreach ($my_var as $val) {
      print $val . &lt;br&gt;;
    }
  &lt;/div&gt;
  ...
  </code></pre>
  
  <p>It is possible to print in page.tpl.php the variable generated in the views-view-unformatted.tpl.php?</p>
  
  <p>Thanks!</p>