Can I create a module including only a helper class?My admin module yields helper not found error on dashboard pageCreate Simple Controller Not Working In My Module?Create Simple Controller Not Working In my moduleMagento module not calling install script, to create attribute for categoryMagento admin page helper not found errorCreate Simple Controller Not Working In My Module in Magento 1.9.2?Magento 1.9 custom configuration is not visible in admin panelMage_Ajaxsddto_Helper_Data' not found in appMage.php on line 547Can't create Magento custom admin moduleError while creating module fatal error: Class 'Mage_Cart_Insuranceupsell_Helper_Data' not found in src/app/Mage.php on line 555

Would getting a natural 20 with a penalty still count as a critical hit?

Expressing a chain of boolean ORs using ILP

What happened after the end of the Truman Show?

Do predators tend to have vertical slit pupils versus horizontal for prey animals?

Are there any OR challenges that are similar to kaggle's competitions?

Ending a line of dialogue with "?!": Allowed or obnoxious?

Did Michelle Obama have a staff of 23; and Melania have a staff of 4?

Have made several mistakes during the course of my PhD. Can't help but feel resentment. Can I get some advice about how to move forward?

Why should P.I be willing to write strong LOR even if that means losing a undergraduate from his/her lab?

When does The Truman Show take place?

What would cause a nuclear power plant to break down after 2000 years, but not sooner?

Alignment of different align environment

Can anybody tell me who this Pokemon is?

Earliest evidence of objects intended for future archaeologists?

Why is su world executable?

What are some tips and tricks for finding the cheapest flight when luggage and other fees are not revealed until far into the booking process?

What should I do with the stock I own if I anticipate there will be a recession?

A reccomended structured approach to self studying music theory for songwriting

C++ Least cost swapping 2

Are unaudited server logs admissible in a court of law?

Adding things to bunches of things vs multiplication

Existence of a certain set of 0/1-sequences without the Axiom of Choice

The anatomy of an organic infrared generator

How do I answer an interview question about how to handle a hard deadline I won't be able to meet?



Can I create a module including only a helper class?


My admin module yields helper not found error on dashboard pageCreate Simple Controller Not Working In My Module?Create Simple Controller Not Working In my moduleMagento module not calling install script, to create attribute for categoryMagento admin page helper not found errorCreate Simple Controller Not Working In My Module in Magento 1.9.2?Magento 1.9 custom configuration is not visible in admin panelMage_Ajaxsddto_Helper_Data' not found in appMage.php on line 547Can't create Magento custom admin moduleError while creating module fatal error: Class 'Mage_Cart_Insuranceupsell_Helper_Data' not found in src/app/Mage.php on line 555






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















Is it possible to create a module/extension with only a Helper class declared?
I am trying to create a module because I need to use a function on more than one phtml files.



So far I got this code:



/app/etc/modules/Mycompanyname_CategoryStep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<active>true</active>
<codePool>local</codePool>
</Mycompanyname_CategoryStep>
</modules>
</config>


/app/code/local/Mycompanyname/CategoryStep/Helper/Data.php



<?php
class Mycompanyname_CategoryStep_Helper_Data extends Mage_Core_Helper_Abstract

public function add($num1, $num2)

return $num1 + $num2;




/app/code/local/Mycompanyname/CategoryStep/etc/config.xml



<?xml version="1.0" encoding ="UTF-8"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<version>0.1.0</version>
</Mycompanyname_CategoryStep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_CategoryStep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


That's the error I get:




Fatal error: Class 'Mage_Categorystep_Helper_Data' not found in
/home/account/public_html/app/Mage.php on line 550




Am I missing something? I followed this guide to create the module and this guide and several others to create the Helper class. Any help would be appreciated.










share|improve this question





















  • 1





    Looks like you have done spelling mistake or there some issues with upper and lower case char linux is case sensitive so check spelling and lower and upper case character is properly used.

    – Aman Alam
    Aug 6 at 7:01






  • 1





    Good to hear that you have resolved your issue. +1 for answer acceptance :)

    – Shoaib Munir
    Aug 6 at 7:17

















4















Is it possible to create a module/extension with only a Helper class declared?
I am trying to create a module because I need to use a function on more than one phtml files.



So far I got this code:



/app/etc/modules/Mycompanyname_CategoryStep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<active>true</active>
<codePool>local</codePool>
</Mycompanyname_CategoryStep>
</modules>
</config>


/app/code/local/Mycompanyname/CategoryStep/Helper/Data.php



<?php
class Mycompanyname_CategoryStep_Helper_Data extends Mage_Core_Helper_Abstract

public function add($num1, $num2)

return $num1 + $num2;




/app/code/local/Mycompanyname/CategoryStep/etc/config.xml



<?xml version="1.0" encoding ="UTF-8"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<version>0.1.0</version>
</Mycompanyname_CategoryStep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_CategoryStep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


That's the error I get:




Fatal error: Class 'Mage_Categorystep_Helper_Data' not found in
/home/account/public_html/app/Mage.php on line 550




Am I missing something? I followed this guide to create the module and this guide and several others to create the Helper class. Any help would be appreciated.










share|improve this question





















  • 1





    Looks like you have done spelling mistake or there some issues with upper and lower case char linux is case sensitive so check spelling and lower and upper case character is properly used.

    – Aman Alam
    Aug 6 at 7:01






  • 1





    Good to hear that you have resolved your issue. +1 for answer acceptance :)

    – Shoaib Munir
    Aug 6 at 7:17













4












4








4








Is it possible to create a module/extension with only a Helper class declared?
I am trying to create a module because I need to use a function on more than one phtml files.



So far I got this code:



/app/etc/modules/Mycompanyname_CategoryStep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<active>true</active>
<codePool>local</codePool>
</Mycompanyname_CategoryStep>
</modules>
</config>


/app/code/local/Mycompanyname/CategoryStep/Helper/Data.php



<?php
class Mycompanyname_CategoryStep_Helper_Data extends Mage_Core_Helper_Abstract

public function add($num1, $num2)

return $num1 + $num2;




/app/code/local/Mycompanyname/CategoryStep/etc/config.xml



<?xml version="1.0" encoding ="UTF-8"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<version>0.1.0</version>
</Mycompanyname_CategoryStep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_CategoryStep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


That's the error I get:




Fatal error: Class 'Mage_Categorystep_Helper_Data' not found in
/home/account/public_html/app/Mage.php on line 550




Am I missing something? I followed this guide to create the module and this guide and several others to create the Helper class. Any help would be appreciated.










share|improve this question
















Is it possible to create a module/extension with only a Helper class declared?
I am trying to create a module because I need to use a function on more than one phtml files.



So far I got this code:



/app/etc/modules/Mycompanyname_CategoryStep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<active>true</active>
<codePool>local</codePool>
</Mycompanyname_CategoryStep>
</modules>
</config>


/app/code/local/Mycompanyname/CategoryStep/Helper/Data.php



<?php
class Mycompanyname_CategoryStep_Helper_Data extends Mage_Core_Helper_Abstract

public function add($num1, $num2)

return $num1 + $num2;




/app/code/local/Mycompanyname/CategoryStep/etc/config.xml



<?xml version="1.0" encoding ="UTF-8"?>
<config>
<modules>
<Mycompanyname_CategoryStep>
<version>0.1.0</version>
</Mycompanyname_CategoryStep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_CategoryStep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


That's the error I get:




Fatal error: Class 'Mage_Categorystep_Helper_Data' not found in
/home/account/public_html/app/Mage.php on line 550




Am I missing something? I followed this guide to create the module and this guide and several others to create the Helper class. Any help would be appreciated.







magento-1.9 module






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 6 at 11:35







Nomik

















asked Aug 6 at 6:56









NomikNomik

236 bronze badges




236 bronze badges










  • 1





    Looks like you have done spelling mistake or there some issues with upper and lower case char linux is case sensitive so check spelling and lower and upper case character is properly used.

    – Aman Alam
    Aug 6 at 7:01






  • 1





    Good to hear that you have resolved your issue. +1 for answer acceptance :)

    – Shoaib Munir
    Aug 6 at 7:17












  • 1





    Looks like you have done spelling mistake or there some issues with upper and lower case char linux is case sensitive so check spelling and lower and upper case character is properly used.

    – Aman Alam
    Aug 6 at 7:01






  • 1





    Good to hear that you have resolved your issue. +1 for answer acceptance :)

    – Shoaib Munir
    Aug 6 at 7:17







1




1





Looks like you have done spelling mistake or there some issues with upper and lower case char linux is case sensitive so check spelling and lower and upper case character is properly used.

– Aman Alam
Aug 6 at 7:01





Looks like you have done spelling mistake or there some issues with upper and lower case char linux is case sensitive so check spelling and lower and upper case character is properly used.

– Aman Alam
Aug 6 at 7:01




1




1





Good to hear that you have resolved your issue. +1 for answer acceptance :)

– Shoaib Munir
Aug 6 at 7:17





Good to hear that you have resolved your issue. +1 for answer acceptance :)

– Shoaib Munir
Aug 6 at 7:17










1 Answer
1






active

oldest

votes


















1














Yes you can. You need to create module xml in



in app/etc/modules/Mycompanyname_Categorystep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<active>true</active>
<codePool>local</codePool>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
</config>


Then for module main config create app/code/local/Mycompanyname/Categorystep/etc/config.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_Categorystep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


then your helper app/code/local/Mycompanyname/Categorystep/Helper/Data.php



<?php
class Mycompanyname_Categorystep_Helper_Data extends Mage_Core_Helper_Abstract

//Your code here



The thing is, in Magento 1.9 module name's first letter should capital, but not all other. So you need to use Categorystep instead of CategoryStep






share|improve this answer




















  • 1





    That was driving me crazy! Thank you for your help. It is indeed working fine now.

    – Nomik
    Aug 6 at 7:16













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284522%2fcan-i-create-a-module-including-only-a-helper-class%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Yes you can. You need to create module xml in



in app/etc/modules/Mycompanyname_Categorystep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<active>true</active>
<codePool>local</codePool>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
</config>


Then for module main config create app/code/local/Mycompanyname/Categorystep/etc/config.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_Categorystep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


then your helper app/code/local/Mycompanyname/Categorystep/Helper/Data.php



<?php
class Mycompanyname_Categorystep_Helper_Data extends Mage_Core_Helper_Abstract

//Your code here



The thing is, in Magento 1.9 module name's first letter should capital, but not all other. So you need to use Categorystep instead of CategoryStep






share|improve this answer




















  • 1





    That was driving me crazy! Thank you for your help. It is indeed working fine now.

    – Nomik
    Aug 6 at 7:16















1














Yes you can. You need to create module xml in



in app/etc/modules/Mycompanyname_Categorystep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<active>true</active>
<codePool>local</codePool>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
</config>


Then for module main config create app/code/local/Mycompanyname/Categorystep/etc/config.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_Categorystep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


then your helper app/code/local/Mycompanyname/Categorystep/Helper/Data.php



<?php
class Mycompanyname_Categorystep_Helper_Data extends Mage_Core_Helper_Abstract

//Your code here



The thing is, in Magento 1.9 module name's first letter should capital, but not all other. So you need to use Categorystep instead of CategoryStep






share|improve this answer




















  • 1





    That was driving me crazy! Thank you for your help. It is indeed working fine now.

    – Nomik
    Aug 6 at 7:16













1












1








1







Yes you can. You need to create module xml in



in app/etc/modules/Mycompanyname_Categorystep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<active>true</active>
<codePool>local</codePool>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
</config>


Then for module main config create app/code/local/Mycompanyname/Categorystep/etc/config.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_Categorystep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


then your helper app/code/local/Mycompanyname/Categorystep/Helper/Data.php



<?php
class Mycompanyname_Categorystep_Helper_Data extends Mage_Core_Helper_Abstract

//Your code here



The thing is, in Magento 1.9 module name's first letter should capital, but not all other. So you need to use Categorystep instead of CategoryStep






share|improve this answer













Yes you can. You need to create module xml in



in app/etc/modules/Mycompanyname_Categorystep.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<active>true</active>
<codePool>local</codePool>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
</config>


Then for module main config create app/code/local/Mycompanyname/Categorystep/etc/config.xml



<?xml version="1.0"?>
<config>
<modules>
<Mycompanyname_Categorystep>
<version>0.1.0</version>
</Mycompanyname_Categorystep>
</modules>
<global>
<helpers>
<categorystep>
<class>Mycompanyname_Categorystep_Helper</class>
</categorystep>
</helpers>
</global>
</config>


then your helper app/code/local/Mycompanyname/Categorystep/Helper/Data.php



<?php
class Mycompanyname_Categorystep_Helper_Data extends Mage_Core_Helper_Abstract

//Your code here



The thing is, in Magento 1.9 module name's first letter should capital, but not all other. So you need to use Categorystep instead of CategoryStep







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 6 at 7:03









Shoaib MunirShoaib Munir

5,7746 gold badges24 silver badges71 bronze badges




5,7746 gold badges24 silver badges71 bronze badges










  • 1





    That was driving me crazy! Thank you for your help. It is indeed working fine now.

    – Nomik
    Aug 6 at 7:16












  • 1





    That was driving me crazy! Thank you for your help. It is indeed working fine now.

    – Nomik
    Aug 6 at 7:16







1




1





That was driving me crazy! Thank you for your help. It is indeed working fine now.

– Nomik
Aug 6 at 7:16





That was driving me crazy! Thank you for your help. It is indeed working fine now.

– Nomik
Aug 6 at 7:16

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284522%2fcan-i-create-a-module-including-only-a-helper-class%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form