Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Controller Oddities
 
gcoderre
Jr. Member
 
Total Posts:  12
Joined:  2007-08-31
Montreal, Quebec, Canada
 

I just setup a controller for a custom module.
The indexAction() works fine and is outputted correctly in a browser, but all other actions lead to a 404.

Any idea?

My module’s config.xml contains:

<frontend>
        <
routers>
            <
mycustommodule>
                <use>
standard</use>
                <
args>
                    <
module>Mage_MyCustomModule</module>
                    <
frontName>mycustommodule</frontName>
                </
args>
            </
mycustommodule >
        </
routers>
    </
frontend>

And the controller contains:

class Mage_MyCustomModule_IndexController extends Mage_Core_Controller_Front_Action
{
    
public function indexAction()
    
{
        
echo "This is the index page.";
    
}

    
public function somepageAction()
    
{
        
echo "This is some page.";
    
}
    
    
public function someotherpageAction()
    

        
echo "This is some other page."
    
}
}
 
Magento Community Magento Community
Magento Community
Magento Community
 
gcoderre
Jr. Member
 
Total Posts:  12
Joined:  2007-08-31
Montreal, Quebec, Canada
 

Nevermind that stupid post.

Sorry to have created a new topic just for that.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top