Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Controller called, layout not displayed
 
BoostMyShop
Sr. Member
 
Avatar
Total Posts:  155
Joined:  2008-06-11
France
 

Hello smile

i’m building a quotation functionnality for magento.
So i try to create a new screen on the front end:

My controller is successfully called with matching action but my layout is not displayed.

Controller:

public function indexAction()
    
{
        
try 
        
{
            $this
->loadLayout();
            
$this->renderLayout();
        
}
        
catch (Exception $ex)
        
{
            
die($ex->getMessage());
        
}
    }

Layout:

<?xml version="1.0"?>
<layout version="0.1.0">

    <
quotation_index_index>
        <
reference name="content">
            <
block type="core/template" name="quotationlist" template="quotation/quotation.phtml" />
        </
reference>
    </
quotation_index_index>
    
    <
quotation_quote_view>
        <
reference name="content">
            <
block type="core/template" name="quotationview" template="quotation/view.phtml" />
        </
reference>
    </
quotation_quote_view>
    
</
layout>

Config.xml:

<frontend>
        <
routers>
            <
quotation>
                <use>
standard</use>
                <
args>
                    <
module>MDN_quotation</module>
                    <
frontName>quotation</frontName>
                </
args>
            </
quotation>
        </
routers>
        <
layout>
            <
updates>
                <
quotation>
                    <
file>quotation.xml</file>
                </
quotation>
            </
updates>
        </
layout>
    </
frontend>

And profiler result (in attachment)

Have u any idea of the problem ?

Thanks in advance

Olixelle

[

File Attachments
profiler.txt  (File Size: 6KB - Downloads: 65)
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top