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;
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
add a comment |
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
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
add a comment |
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
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
magento-1.9 module
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
1
That was driving me crazy! Thank you for your help. It is indeed working fine now.
– Nomik
Aug 6 at 7:16
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
1
That was driving me crazy! Thank you for your help. It is indeed working fine now.
– Nomik
Aug 6 at 7:16
add a comment |
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
1
That was driving me crazy! Thank you for your help. It is indeed working fine now.
– Nomik
Aug 6 at 7:16
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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