Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2>Orignal Answer:</h2> <p>Your call to:</p> <pre><code>$this-&gt;_redirect(); </code></pre> <p>Calls the Redirector action helper, which (unless you've configured it not to) will automatically exit the script as soon as the headers are written, so the view will never be called or rendered, there's no need for a view script.</p> <hr> <h2>Follow-up Answer:</h2> <p>In order to call the action without sending the user to the other "page" and then redirecting back again you'll need to use an XMLHttpRequest (AJAX) call. These links should provide the information you need:</p> <p><a href="http://developer.mozilla.org/en/AJAX" rel="nofollow noreferrer">http://developer.mozilla.org/en/AJAX</a><br> <a href="http://www.ibm.com/developerworks/xml/library/wa-ajaxintro1.html" rel="nofollow noreferrer">http://www.ibm.com/developerworks/xml/library/wa-ajaxintro1.html</a><br> <a href="http://www.oracle.com/technology/pub/articles/schalk-ajax.html" rel="nofollow noreferrer">http://www.oracle.com/technology/pub/articles/schalk-ajax.html</a> </p> <p>Also take a look at some JS frameworks that make using XMLHttpRequest cross-browser much easier:</p> <p><a href="http://www.prototypejs.org/" rel="nofollow noreferrer">http://www.prototypejs.org/</a><br> <a href="http://mootools.net/" rel="nofollow noreferrer">http://mootools.net/</a> </p> <p>Zend Framework actually has built in support for the Dojo JS framework, which you may find easier:</p> <p><a href="http://framework.zend.com/manual/en/zend.dojo.html" rel="nofollow noreferrer">http://framework.zend.com/manual/en/zend.dojo.html</a><br> <a href="http://www.dojotoolkit.org/" rel="nofollow noreferrer">http://www.dojotoolkit.org/</a> </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload