0

My layout

<returnofdisplays_index_index>
        <update handle="customer_account"/>
        <reference name="content">
                <block type="returnofdisplays/grid" name="returnofdisplays" template="c9/returnofdisplays/grid.phtml">
                  <block type="returnofdisplays/gridproductreturns" name="product_returnofdisplays" template="c9/returnofdisplays/gridproductreturns.phtml"/>
                </block>
        </reference>
</returnofdisplays_index_index>

File grid.phtml

ABC
<?php echo $this->getChildHtml('product_returnofdisplays') ?>

File gridproductreturns.phtml

This is a product return

It does not show like this after reloading the page, only show grid.phtml is ABC

ABC
This is a product return

I tried this code but it shows an error

<?php echo $this->getLayout()->createBlock('returnofdisplays/gridproductreturns', 'product_returnofdisplays', array('template' => 'c9/returnofdisplays/gridproductreturns.phtml'))->toHtml();?>

This is my Error

Fatal error: Call to a member function toHtml() on boolean

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.