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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:57:49+00:00 2026-05-31T13:57:49+00:00

i am working on a module e.g Mymodule , in which i need to

  • 0

i am working on a module e.g “Mymodule“, in which i need to filter the results. i.e. for Partners i created Partner.php and for Community i created Community.php in

Mymodule/Block/Partner.php 
Mymodule/Block/Community.php

Now i wanted to access their code in frontend through Mymodule.XML

<block type="mymodule/partner" ......................... />

but this doesn’t work on LIVE SERVER, although it does work on local Wamp server 🙁 … Any idea ?

Although when i access the default Mymodule.php code in the same and add the code i placed in partner and community file, it does work.

Is there something i am missing ?

  • 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-05-31T13:57:50+00:00Added an answer on May 31, 2026 at 1:57 pm

    I’m not strictly sure how your code would ever have worked. But assuming you haven’t built a module before, you’ll need a minimum of 3 files.

    app/etc/modules/Sonassi_Module.xml
    app/code/community/Sonassi/Module/etc/config.xml
    app/code/community/Sonassi/Module/Block/Partner.php
    

    In the first file … app/etc/modules/Sonassi_Module.xml

    <?xml version="1.0"?>
    <config>
      <modules>
        <Sonassi_Module>
          <active>true</active>
          <codePool>community</codePool>
        </Sonassi_Module>
      </modules>
    </config>
    

    In the second file … app/code/community/Sonassi/Module/etc/config.xml

    <?xml version="1.0"?>
    <config>
      <modules>
        <Sonassi_Module>
          <version>0.1.0</version>
        </Sonassi_Module>
      </modules>
      <frontend>
        <routers>
          <module>
            <use>standard</use>
            <args>
              <module>Sonassi_Module</module>
              <frontName>module</frontName>
            </args>
          </module>
        </routers>
      </frontend>
      <global>
        <blocks>
          <module>
            <class>Sonassi_Module_Block</class>
          </module>
        </blocks>
      </global>
    </config>
    

    In the third file … app/code/community/Sonassi/Module/Block/Partner.php

    class Sonassi_Module_Block_Partner extends Core_Block_Template
    {
    
    }
    

    Then finally, you can then use

    <block type="module/partner" ......................... />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are working on a module in which I gave the xpos, ypos, windowhandle.
I'm working on authorization module for Kohana 3.1. In my module's init.php ... Route::set(
I'm working on a web site which contains sections that need to be secured
I'm working on a rapid project, of which, I'm directly working on a module
After many hair-pulling frustrations I've finally got one version of the PerlMagick module working
I'm working on a module for a CMS. This module is distributed as a
I'm working on a module that requires a strictly decoupled interface. Specifically, after instantiating
I'm working on a module for a project where the screen is in landscape
I'm working on a module that, among other things, will add some generic 'finder'
I am working on a module that allows users to post comments on a

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.