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 8871843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:05:19+00:00 2026-06-14T18:05:19+00:00

I’ve been working on a plugin for Magento, and I have one global block

  • 0

I’ve been working on a plugin for Magento, and I have one global block with no xml tags outside of it in my layout/name.xml file as such:

<block name="one.two.three" template="project/button.phtml" />

The idea is to be able to call getBlockHtml(“one.two.three”) anywhere and be able to see the beta.phtml. I got this working no problem.

To test through my plugin’s installation process, I tried installing another magento from scratch. I installed my plugin into the same directories as the first and copied/pasted the getBlockHtml from my older install, and nothing appears (not even the template hint)! Adding default references didn’t help.

It’s obviously not detecting my xml files, though the adminhtml menu and the mysql install script both work. Any idea why this would be? And yes, I have cleared cache countless times.

Edit:

Both installations are version 1.7.0.2

Both of these installations are on the same computer, so their filesystems and casing are presumably identical. Is it ever the case when two on the same computer could differ in case sensitivity?

Installing plugin: We have a script that copies files into the Magento installation, which has been working so far with the first installation, and is what I have been doing with the second ins. To confirm, the entries and tables in the magento database are added when the files are copied over.

My layout is stored in a general layout folder: app/design/layout/projectEmbeds.xml. I realize this is not common convention but it was like this before I got to this project, and it was working so I didn’t mess with it. I assume this decision was made so it would appear independent website theme.

Similarly, my plugin is stored in app/code/local/ -> Project/Embeds, which contains Blocks, controllers, etc, Helper, Model, and sql as it should.

The button.phtml in question is located in app/design/frontend/default/default/project

My config.xml file stored in etc in the above directory is as follows. Anything referencing Project_Banner is important and the Project_Embed one is almost entirely deprecated.

<config>    
<modules>
    <Project_Embeds>
        <version>0.1.0</version>
    </Project_Embeds>
</modules>
<frontend>
    <routers>
        <embeds>
            <use>standard</use>
            <args>
                <module>Project_Embeds</module>
                <frontName>embeds</frontName>
            </args>
        </embeds>
    </routers>  
    <layout>
        <updates>
            <embeds>
                <file>projectEmbeds.xml</file>
            </embeds>
        </updates>
    </layout>
</frontend>
<global>
    <resources>
    <project_embed_setup>
        <setup>
            <module>Project_Embeds</module>
            <class>Project_Embeds_Model_Mysql4_Setup</class>
        </setup>
    </project_embed_setup>
    </resources>
    <models>
        <embeds>
            <class>Project_Embeds_Model</class>
            <resourceModel>embeds_mysql4</resourceModel>
        </embeds>
        <projectbanner>
            <class>Project_Banner_Model</class>
            <resourceModel>banner_mysql4</resourceModel>
        </projectbanner>
        <embeds_mysql4>
            <class>Project_Embeds_Model_Mysql4</class>
            <entities>
                <embeds>
                    <table>project_embed</table>
                </embeds>
                <banner>
                    <table>project_banner</table>
                </banner>
            </entities>
        </embeds_mysql4>
    </models>
    <resources>
        <embeds_setup>
            <setup>
                <embeds>Project_Embeds</embeds>
            </setup>
            <connection>
                <use>core_setup</use>
            </connection>
        </embeds_setup>
        <embeds_write>
            <connection>
                <use>core_write</use>
            </connection>
        </embeds_write>
        <embeds_read>
            <connection>
                <use>core_read</use>
            </connection>
        </embeds_read>
    </resources>
    <blocks>
        <embeds>
            <class>Project_Embeds_Block</class>
        </embeds>
    </blocks>
    <helpers>
        <embeds>
            <class>Project_Embeds_Helper</class>
        </embeds>
    </helpers>
</global>
<admin>
    <routers>
        <thisprojectname>
            <use>admin</use>
            <args>
                <module>Project_Embeds</module>
                <frontName>project</frontName>
            </args>
        </thisprojectname>
    </routers>
    <!-- default admin design package and theme -->
    <design>
        <package>
            <name>base</name>
        </package>
        <theme>
            <default>default</default>
        </theme>
    </design>
</admin>
<adminhtml>
    <menu>
        <embeds translate="title" module="embeds">
            <title>Project</title> 
            <sort_order>9999</sort_order>
            <children>
                <projectbanner module="embeds">
                    <title>Edit Coupon</title>
                    <sort_order>1</sort_order>
                    <action>embeds/adminhtml_banner</action>
                </projectbanner>
            </children>
        </embeds>
    </menu> 
    <layout>
        <updates handle="index_settings">
            <embeds>
                <file>projectEmbeds.xml</file>
            </embeds>
        </updates>
    </layout>
</config>
  • 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-14T18:05:20+00:00Added an answer on June 14, 2026 at 6:05 pm

    Try adding the projectEmbeds.xml file in your theme used i.e default i guess

    So add in

     /app/design/frontend/default/default/layout/
    

    and call the block inside

    <default></default>
    

    Let me know if it helps..

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

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
In my XML file chapters tag has more chapter tag.i need to display chapters
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have been unable to fix a problem with Java Unicode and encoding. The
I have a reasonable size flat file database of text documents mostly saved in
I'm parsing an XML file, the creators of it stuck in a bunch social
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.