I am trying to understand how what is happening in my config, when I set up a new module. To create a module called Ts_Wo I need to add
app/code/etc/modules/Ts_Wo.xml
<config>
<modules>
<Ts_Wo>
<active>true</active>
<codePool>local</codePool>
</Ts_Wo>
</modules>
</config>
And need to add
app/code/local/Ts/Wo/etc/config.xml
<config>
<modules>
<Ts_Wo>
<version>0.1.0</version>
</Ts_Wo>
</modules>
<frontend>
<routers>
<wo>
<use>standard</use>
<args>
<module>Ts_Wo</module>
<frontName>wo</frontName>
</args>
</wo>
</routers>
</frontend>
</config>
from here I go to the magento admin panel system->configuration->advanced to check if the module is enabled.
This has all worked fine until I spotted that I had created two modules Ts_Wo and Ts_Woo. Obviously I corrected the typo (which I found in modules node of config.xml) and I was back to one module
My questions:
1- I thought Magento required both of these files to create the module?
2- If it doesn't why do I create the two files?
2a- If it does how is it two different modules were displayed when I would have expected no module to be displayed?