magento 1.9 – The block does not appear when creating a custom type

I'm trying to nest a block in another block, but the child block does not show up when I set a custom block type.

If I put both blocks as page / html so the two blocks show well:


But when I declare my custom block type so that I can use the custom block methods, the block does not show up.


I created this file: app / code / local / Company / MobileMenu / Block / MobileMenuBlock.php who has this content:

<? php
class Company_MobileMenu_Block_MobileMenuBlock extends Mage_Core_Block_Template
public function getNestedMenu ()
return the nested menu goes here;

I save it in my config.xml file as follows:


What do I do wrong with the custom block registration?