Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8884611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:06:08+00:00 2026-06-14T21:06:08+00:00

I created a new custom block and added it to the before_body_end block. When

  • 0

I created a new custom block and added it to the before_body_end block.
When I look in my pages’ source code, nothing appears from my custom block.
Could you help me debug this please ?

In my module layout XML file :

<layout version="0.1.0">
    <default>
        <reference name="before_body_end">
            <block type="tankchat/js_view" name="tankchat.js.view" as="tankchat" template="tankchat/js/view.phtml" />
        </reference>
    </default>
</layout>

Nothing special in my Company_Tankchat_Block_Js_View class, only some “getData” functions.

And my phtml is located at app/design/frontend/company/default/template/tankchat/js/view.phtml and yes it’s the good package and theme etc.

Do I need to add somewhere a echo $this->getChildHtml('tankchat') ? I think I don’t because my custom block is passed to before_body_end, but maybe I’m wrong ?

Any help will be highly appreciated !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:06:11+00:00Added an answer on June 14, 2026 at 9:06 pm

    Ok I finally found out what was wrong :

    I made a mistake declaring my layout file, it need to be done in frontend node, not in global ! :

    <config>
        <frontend>
            <layout>
                <updates>
                    <tankchat>
                        <file>tankchat.xml</file>
                    </tankchat>
                </updates>
            </layout>
        </frontend>
    </config>
    

    The file wasn’t even opened by the app…

    But I also forgot to declare the blocks prefix in my module config file :

    <config>
        <global>
            <blocks>
                <tankchat>
                    <class>Company_Tankchat_Block</class>
                </tankchat>
            </blocks>
        </global>
    </config>
    

    The block class wasn’t found by autoloader…

    Hope this will help someone in the future…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im created a custom block, with the below code, but im having some trouble
I've created a custom module (which currently only defines a new Exception class), and
I created a simple custom attribute on the sales/order entity. Now, for new orders,
I want to create a new custom control derived from ContentControl (it will be
Help, I'm trying to create a new post in my wordpress blog with custom
I've created a custom container view controller using the new UIViewController container view controller
I'm creating new Site Definitions using this method: http://weblogs.asp.net/paulballard/archive/2007/04/09/creating-a-custom-sharepoint-2007-portal-site-definition-using-the-portalprovisioningprovider-class.aspx and when they get created,
So, horray - I'm attempting to create a new custom Payment Gateway. It's designed
I have been trying to create a new google custom search engine, but when
The ThreadPoolExecutor class allows to give a custom ThreadFactory to create new threads. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.