I've gone through about 50 different pages and posts of people having the same issue, but none seem to be caused by what ever is casing my issue.

I've got my module, registered the route and it's loading the layout XML all fine as the page template is the correct one. I can also log in my controller and action just fine. If I change my block type to a built in Magento type like core/template It gives me an error caused by the code in my template phtml file so the template file is working. It just seems to be the block type throwing me off.

I keep looking through tutorials and guides but I'm failing to see any difference sin my approach. I see not many people putting their block in a sub folder in the Blocks folder, but I am calling the block with lookbook_view. I also tested by moving the view block out of m Lookbook folder and placing it directly in the Block folder (and renaming the class) but this also did not work


<lookbook_lookbook_view translate="label">
    <label>Single Lookbook Page</label>
    <remove name="right"/>
    <remove name="left"/>

    <reference name="root">
        <action method="setTemplate">
    <reference name="content">
        <block type="lookbook/lookbook_view" name="lookbook_view" template="lookbook/view.phtml"/>




class Test_Lookbook_Block_Lookbook_View extends Mage_Core_Block_Template{

   public function getCurrentLookbook()
       echo 'test';die();

       return Mage::registry('current_lookbook');
  • 2
    When you have your block set up correctly you can validate it in the template by doing <?php echo get_class($this);?> and it will tell you what block it thinks it is. Just to validate that it's actually getting your instance of Test_Lookbook_Block_Lookbook_View. Also putting subdirectories in /Block is grand, no worries :) Aug 14, 2015 at 11:33
  • But my issue is my template view.php file doesn't get called when i use the correct block type. Aug 14, 2015 at 15:20

1 Answer 1


After unknown hours and google searches.

view.php needed to be View.php Magento capitalizes the files it looks for in the block type.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.