Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Maybe that this example, from the same application, with the same problem, makes things more clear:</p> <p>In the <code>navigation.xml</code>:</p> <pre><code>... &lt;over&gt; &lt;label&gt;Over ons&lt;/label&gt; &lt;module&gt;default&lt;/module&gt; &lt;controller&gt;over&lt;/controller&gt; &lt;action&gt;index&lt;/action&gt; &lt;pages&gt; &lt;wat&gt; &lt;label&gt;Wat?&lt;/label&gt; &lt;module&gt;default&lt;/module&gt; &lt;controller&gt;over&lt;/controller&gt; &lt;action&gt;wat&lt;/action&gt; &lt;/wat&gt; &lt;wie&gt; &lt;label&gt;Wie?&lt;/label&gt; &lt;module&gt;default&lt;/module&gt; &lt;controller&gt;over&lt;/controller&gt; &lt;action&gt;wie&lt;/action&gt; &lt;/wie&gt; &lt;contact&gt; &lt;label&gt;Contact&lt;/label&gt; &lt;module&gt;default&lt;/module&gt; &lt;controller&gt;over&lt;/controller&gt; &lt;action&gt;contact&lt;/action&gt; &lt;/contact&gt; &lt;faq&gt; &lt;label&gt;Help&lt;/label&gt; &lt;module&gt;default&lt;/module&gt; &lt;controller&gt;over&lt;/controller&gt; &lt;action&gt;faq&lt;/action&gt; &lt;/faq&gt; &lt;/pages&gt; &lt;/over&gt; ... </code></pre> <p>The corresponding <code>OverController</code> looks like this:</p> <pre><code>class Default_OverController extends Custom_Controller_Action_EhcAction { public function indexAction() { return $this-&gt;render('index'); } public function contactAction() { return $this-&gt;render('contact'); } public function wieAction() { return $this-&gt;render('wie'); } public function watAction() { return $this-&gt;render('wat'); } public function faqAction() { return $this-&gt;render('faq'); } } </code></pre> <p>As you can see our Controllers extend the <code>Custom_Controller_Action_EhcAction</code>. This is a custom class that extends the <code>Zend_Controller_Action</code> and adds some extra functionality (logging, identity of the logged in user, ...). This custom class can't be the cause of our problem, it still occurs if we don't use is.</p> <p>In this example, if we go to the <code>default/over/wat</code> action, the application will also call the following node <code>default/over/wie</code>. If we switch places in the XML, it turns out that the second call always is the following or first underlying node.</p> <p>We don't think theirs a JavaScript call, because if we check our traffic with Charles, there's only one call being dispatched.</p> <p>The view scripts of this example only contain simple HTML, no PHP or JS whatsoever...</p> <p>Hopefully this will make our problem more clear...</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