1

I try to install a simple module for my admin dashboard but no result.

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

I wish my theme here: www\app\design\adminhtml\mytheme\default

<?xml version="1.0"?>
<config>
 <stores>
 <admin>
 <design>
 <package>
 <name>MyTheme</name>
 </package>
 <theme>
 <name>default</name>
 </theme>
 </design>
 </admin>
 </stores>
</config>

Thanks for your help.

asked Jan 18, 2016 at 16:27
1
  • Yes, I have forgot to specify the module. Now I have an error : Fatal error: Call to a member function setActive() on a non-object in www\app\code\core\Mage\Adminhtml\Controller\Action.php on line 104 I just wish this structure: www\app\design\adminhtml\mytheme\default\layout www\app\design\adminhtml\mytheme\default\template I use magento 1.9.2.2 Commented Jan 18, 2016 at 16:58

1 Answer 1

0

You have do some mistake:

1. define module config.xml

<?xml version="1.0"?>
<config>
 <modules>
 <Azerty_Adminhtml>
 <version>1.0.0</version>
 </Azerty_Adminhtml>
 </modules>
 <stores>
 <admin>
 <design>
 <package>
 <name>MyTheme</name>
 </package>
 <theme>
 <name>default</name>
 </theme>
 </design>
 </admin>
 </stores>
</config>

This code should be contain of config.xml.Which should located at app/code/local/Azerty/Adminhtml/etc

2.

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

-- It is module main configuration file which located app/etc/modules/

and file name is Azerty_Adminhtml.xml

answered Jan 18, 2016 at 16:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.