title: zend framework partial not render echo on ajax request
body: <p>I'd like to render a partial as a response to an ajax request in my controller action.
  My goal is to echo a <a href="http://twitter.github.com/bootstrap/javascript.html#alerts" rel="nofollow">Twitter Bootstrap Alert</a> when ajax request is successful.</p>
  
  <p>Here is my action (<code>redigeraLottningAction</code>):</p>
  
  <pre><code>if($this-&gt;getRequest()-&gt;isXmlHttpRequest()){
      $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
      $this-&gt;_helper-&gt;layout-&gt;disableLayout();
      echo $this-&gt;view-&gt;partial('partial/alert-ajax.phtml', array('type' =&gt; 'success', 'msg' =&gt; 'Lyckat! Lottningen är nu sparad.'));
  }
  </code></pre>
  
  <p>And my partial (<code>alert-ajax.phtml</code>):</p>
  
  <pre><code>&lt;div id="alert-msg" class="alert alert-&lt;?= $this-&gt;type?&gt; fade in"&gt;
      &lt;a class="close" data-dismiss="alert" href="#"&gt;×&lt;/a&gt;
      &lt;p&gt;&lt;?= $this-&gt;msg?&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>The problem is that the php scripts in the partial is outputed as text. This is what it looks like in the browser with variables not rendered:</strong></p>
  
  <pre><code>&lt;div id="alert-msg" class="alert alert-&lt;?= $this-&gt;type?&gt; fade in"&gt;
      &lt;a class="close" data-dismiss="alert" href="#"&gt;×&lt;/a&gt;
      &lt;p&gt;&lt;?= $this-&gt;msg?&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the jquery part:</p>
  
  <pre><code>$(document).ready(function(){
  
      $('#lottning-spara').click(function () {
          $.ajax({
              type: "POST",
              url: '/turnering/redigera-lottning',
              cache: false,
              data: {id: getParam("turnering"), klass_id: getParam("klass"), type: "spara", lottning: $('#lottning_str').val()},
              dataType: 'html',
              success: function(msg){
                  $('#alert-div').html(msg);
              },
              error: function(){
                  $('#alert-div').html('Error!');
              }
          });
      });
  });
  </code></pre>
  
  <p>Any ideas why the php in partial is not rendered??</p>
  
  <p><strong>Edits are bold.</strong></p>
  
  <p><strong>Problem Solved.
  The alert-ajax.phtml file was a different charset type.</strong></p>