I am developing a module & created admin controller but working on url


show error:There has been an error processing your request
error in the file is

a:5:{i:0;s:51:"Controller file was loaded but class does not exist";i:1;s:1106:".../magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(326): Mage::exception('Mage_Core', 'Controller file...')

code is here Namespace/Modulename/etc/config.xml

                        <modulename before="Mage_Adminhtml">Namesapce_Modulename_Adminhtml</modulename>


class Namespace_Modulename_Adminhtml_TransationController extends Mage_Adminhtml_Controller_Action

    public function indexAction()
        echo "string";

The error message is pretty clear about it:

Controller file was loaded but class does not exist

So the controller file has been loaded but the class name is wrong. Class name and file name in your question seem to match, but I noticed that TransationController probably should read TransactionController ("C" is missing).

Double check that file name and class name match


fschmengler's answer is correct. There is another type in config.xml with a and p swapped in Namespace: Namesapce_Modulename_Adminhtml

Should be Namespace_Modulename_Adminhtml.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.