Magento Grid Container Block Does Not Load Grid

I just installed the admin module with the grid using the module creator and it works fine, but now I need to add another kind of grid in the same module.

I copied and renamed all the files related to the grid view (controllers and block files, but not models, because they are not needed for what I am doing), and added the newly created block to the xml layout under the handle for it with a new controller.

Using Firephp, I decided that everything loads fine for my new look, down to Grid.php, which doesn't load, and the final output is just a blank page.

As far as I know, this new view is identical to the original working grid view generated by the module in all aspects except the name, so what can cause it not to recognize or load Grid.php?

+5
source share
1 answer

In the grid container block, view the values ​​for $_blockGroupand $_controller. They are used by the container to search and load a grid block. If you really want to see what happens, look at the method parent::_prepareLayout().

PS:
$_blockGroup - your module name.
$_controlleris the path to your grid block.

PPS:
If this is not enough, put it in your .htaccess:

php_flag display_errors on
SetEnv MAGE_IS_DEVELOPER_MODE true

, SQL -.

+17

All Articles