title: Zend framework how can i get value from view and controller when render() is used?
body: <p>I have this code in <code>layout/formsde/url.phtml</code>:</p>
  
  <pre><code>&lt;?php
  $use_url = $this-&gt;use_url;
  foreach($this-&gt;match_de as $k=&gt;$v) {
    if($this-&gt;serverUrl(true) == $k) {  
      $use_url = $v;  
    }
  }
  ?&gt;
  </code></pre>
  
  <p>I have 1000 pages with following line:</p>
  
  <p><code>&lt;?=$this-&gt;render("layout/formsde/url");?&gt;</code></p>
  
  <p>Now the problem is <code>$this-&gt;use_url</code> and <code>$this-&gt;match_de</code> is null its not getting the value from Controllers where it is assigned as below:</p>
  
  <pre><code>return new ViewModel(array(
      'description' =&gt; $this-&gt;de_desc,
      'use_url' =&gt; $this-&gt;layout()-&gt;use_url,
      'match_de' =&gt; $this-&gt;layout()-&gt;match_de,          
  ));
  </code></pre>
  
  <p>How can i pass the value to ->render() ? so that i have <code>$this-&gt;match_de</code> value with exact which is in controller?</p>