2

after no sleep night full of googling and trying things, I need your help. My created controller for Magento 1.9, is inaccessible at the address ("whoops, our bad..." page): http://magento1.at/customblog/test/test

domain/frontname/controllername/actionname

I have already tried running this on windows and mac, repaired permissions of every file and folder, admin panel logout-login, clearing cache, reindexing data, checking my code, and still no luck. The module btw is working, I can Enable/Disable it in admin, and the install script worked with no problems. So. please, tell me where my problem is at, thanks, everyone so much! Here is my code:

config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Atwix_CustomBlog>
            <version>1.0.0</version>
        </Atwix_CustomBlog>
    </modules>
    <global>
        <helpers>
            <Atwix_CustomBlog>
                <class>Atwix_Customblog_Helper</class>
            </Atwix_CustomBlog>
        </helpers>
        <models>
            <customblog>
                <class>Atwix_Customblog_Model</class>
                <resourceModel>customblog_resource</resourceModel>
            </customblog>
            <customblog_resource>
                <class>Atwix_Customblog_Model_Resource</class>
                <entities>
                    <block>
                        <table>atwix_article</table>
                    </block>
                </entities>
            </customblog_resource>
        </models>
        <resources>
            <atwix_customblog_setup>
                <setup>
                    <module>Atwix_Customblog</module>
                </setup>
            </atwix_customblog_setup>
        </resources>
    </global>
    <frontend>
        <routers>
            <customblog>
                <use>standard</use>
                <args>
                    <module>Atwix_Customblog</module>
                    <frontName>customblog</frontName>
                </args>
            </customblog>
        </routers>
    </frontend>
</config>

TestController.php

<?php
class Atwix_CustomBlog_TestController extends Mage_Core_Controller_Front_Action {

    public function TestAction()
    {
        echo('test');
    }
}

1 Answer 1

2

Please try this module name is case sensitive in your module name is Atwix_CustomBlog. But in your front name args your specified like this Atwix_Customblog. I hope this will help you.

<?xml version="1.0"?>
<config>
    <modules>
        <Atwix_CustomBlog>
            <version>1.0.0</version>
        </Atwix_CustomBlog>
    </modules>
    <global>
        <helpers>
            <Atwix_CustomBlog>
                <class>Atwix_Customblog_Helper</class>
            </Atwix_CustomBlog>
        </helpers>
        <models>
            <customblog>
                <class>Atwix_Customblog_Model</class>
                <resourceModel>customblog_resource</resourceModel>
            </customblog>
            <customblog_resource>
                <class>Atwix_Customblog_Model_Resource</class>
                <entities>
                    <block>
                        <table>atwix_article</table>
                    </block>
                </entities>
            </customblog_resource>
        </models>
        <resources>
            <atwix_customblog_setup>
                <setup>
                    <module>Atwix_Customblog</module>
                </setup>
            </atwix_customblog_setup>
        </resources>
    </global>
    <frontend>
        <routers>
            <customblog>
                <use>standard</use>
                <args>
                    <module>Atwix_CustomBlog</module>
                    <frontName>customblog</frontName>
                </args>
            </customblog>
        </routers>
    </frontend>
</config>
2
  • Oh, you are a life saver! Thank you so much!!
    – vladboing
    Commented Mar 2, 2018 at 9:40
  • @vladboing If this answer is helpful for you means please accept and upvote the answer this will helpful for others Commented Mar 2, 2018 at 9:41

Your Answer

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

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