Details
Description
Nesting a call to Zend_View_Helper_Action in a call to Zend_View_Helper_Action will render the inner call twice, once before the outer call and once within it (as it should be).
In layout:
<?php echo $this->action('get', 'sidebar'); ?>
That renders a view script with the following code:
<div class="sidebar">
<div class="singleContainerMed">
<h3>Question?</h3>
<?php echo $this->action('partner', 'email'); ?>
</div>
</div>
The viewscript returned in <?php echo $this->action('partner', 'email'); ?> is displayed both above <div class="sidebar"> and within it.
If the viewscript contains the same thing, but does not echo the partner/email action (<?php $this->action('partner', 'email'); ?>), it still is rendered above <div class="sidebar">, but no longer inside it.
The latter scenario should not render it at all.
Issue Links
| This issue duplicates: | ||||
| ZF-2808 | Using $this->action to chain view content together causes unexpected content in body of response |
|
|
|
| ZF-3456 | Zend_View_Helper_Action Issue, duplicated view output |
|
|
|
| This issue is related to: | ||||
| ZF-2846 | Zend_View_Helper_Action does not maintain state between called action and calling action |
|
|
|
Assigning to Ralph and scheduling for next mini release; may be fixed in trunk already.