-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My custom module is not showing in system->configuration->advanced->advanced #795
Comments
In order for module to be registered in the Magento instance, you need to perform installation. When you install normally, it will automatically discover all modules and enable them by default (as long as your But for an existing Magento instance, you'll need to register it as follows:
|
Thanx for this, But then also after giving frontname in url it displays error:-Class Magentozend\Hello\Controller\Hello does not exist";i:1;s:1170:"#0 /opt/lampp/htdocs/workspace/magento2/lib/internal/Magento/Framework/Code/Reader/ClassReader.php(37): ReflectionClass->__construct('Magentozend\Hello...') |
Sometimes when I put frontname in the controller,It give errroe 404 not found...:( |
Looks like classes from Magentozend namespace are not autoloading. To do this, please add a namespace to composer.json and rerun composer install.
|
Is there any other way to do this...accept composer.json.....and I have to run this command "composer install." from the root of my magento2 directory???? |
After adding this in my composer.json under the root directory of magento2 parallel to app,
It is giving same error,as above,Please solve this issue ..its urgent..??? |
Maybe you don't declare route for your module. |
I have declared in the etc->frontend->routes.xml as bt then also...??? |
In one comment it was suggested to add a PSR mapping for "magentozend" but in a response to that I only saw "Alankent" added. To handle all cases, please add the following to your root composer.json file, just after the "psr-4" section:
After adding this you'll need to run |
One more clarification - when you change |
I am giving You my module ,Please tell where I am wrong ,I have created the Module by the namespace Alankent
in my composer.json of magento2 directory,and run composer update,in the terminal which results, Class AlanKent\ShowApplicationState\Controller\ShowApplicationStateFrontController does not exist";i:1;s:1170:"#0 /opt/lampp/htdocs/workspace/magento2/lib/internal/Magento/Framework/Code/Reader/ClassReader.php(38): ReflectionClass->__construct('AlanKent\ShowAp...') |
@aishwaryacedcoss , you request class in namespace |
Thanku for that..It my mistake...Bt Now also my controller is not echo any thing it looks like in the construct fuction ar any function ang gives error:- a:4:{i:0;s:34:"Incorrect theme identification key";i:1;s:3298:"#0 /opt/lampp/htdocs/workspace/magento2/app/code/Magento/Core/Model/View/Design.php(162): Magento\Framework\View\Design\Theme\FlyweightFactory->create(NULL, 'showapplication...') |
I dont why it is very difficult to create a module in magento2??? |
Thanku thanku ..I have resolved the problem...Now its working....thanku..for the help...every1:) |
I have created a module in parallel to magento folder inside the app->code .I have created module.xml,config.xml in the etc folder.Is this is enough for creating the configuration for any module.Then why It is not showing..Please help me....????
The text was updated successfully, but these errors were encountered: