I have created a module that works on my Windows XAMPP installation. Testing on Linux, however, does not seem to work correctly. More specifically, my controller does not seem to load.
When visiting the url www.mysite.com/modulename/standard/
I am getting a 404 error. I am expecting to get a message outputting the die('here')
that precedes the class definition in the controller.
The controller file is /app/code/local/Namespace/Modulename/controllers/StandardController.php
.
The class is defined inside this file like so:
class Namespace_Modulename_StandardController extends Mage_Core_Controller_Front_Action
The extract from my XML config file is here:
<frontend>
<routers>
<modulename>
<use>standard</use>
<args>
<module>Namespace_Modulename</module>
<frontName>modulename</frontName>
</args>
</modulename>
</routers>
<!-- other blocks here -->
</frontend>
My initial thought was that it was a case sensitivity issue that I hadn't noticed by developing on Windows. The XML fragment was previously as follows, which also did not work. Please also note that I have tried visiting www.mysite.com/Modulename/standard
and www.mysite.com/modulename/standard
for both XML versions, with a 404 error every time.
<Modulename>
<use>standard</use>
<args>
<module>Namespace_Modulename</module>
<frontName>Modulename</frontName>
</args>
</Modulename>
Does anybody know what could be the problem?
Thank you.
Edit
As requested, here is the module's config file. This all seems to be correct - the module is displayed in the Admin/Developer page and the module configuration screen (generated in system.xml) appears in the backend. Moreover, parts of the module (and seemingly the controller) are working in the frontend!
<config>
<modules>
<Namespace_Modulename>
<active>true</active>
<codePool>local</codePool>
</Namespace_Modulename>
</modules>
</config>
Edit 2
Some versions may prove useful. PHP 5.3 Magento 1.5.1.0