I
I
ipokos2017-03-05 23:51:41
Magento
ipokos, 2017-03-05 23:51:41

Why is Block and Grid not loading?

In etc/config.xml

<adminhtml>
        <layout>
            <updates>
                <namespace_namemodule>
                    <file>file.xml</file>
                </namespace_namemodule>
            </updates>
        </layout>
    </adminhtml>

layout
<layout version="0.1.0">
    <adminhtml_namemodule_index>
        <reference name="content">
            <block type="namespace_namemodule/adminhtml_namemodule" name="namemodule"></block>
        </reference>
    </adminhtml_namemodule_index>  
</layout>

I understand correctly that the block specified in the layout should be loaded?
Neither the block nor the grid is loaded, only the controller is working
Please tell me =(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CodeKeeper, 2017-03-06
@CodeKeeper

Not enough information. There is a suspicion that either does not see the layout file or an error in the block path. You need to enable magenta logging and look at the logs. If the problem is in the block, then it will write that it cannot find the specified block.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question