Page 1 of 1

Help with Module Writing Tutorial

Posted: Wed Sep 21, 2016 11:17 am
by nickt
I'm following the Module Writing Tutorial and have got to the bottom of page 9, by which time I think I should have a working skeleton of a module called 'Holidays'.
"We now have a working module named 'Holidays'. The module can be installed and uninstalled by using the ModuleManager module within the CMSMS admin console."
However I can't see the module showing up anywhere in the CMSMS Module Manager. Am I missing anything? Any help would be welcome.

Following the tutorial, I currently have these files in the modules folder...
Holidays/holidays.module.php
Holidays/method.install.php
Holidays/method.uninstall.php
Holidays/lang/en_US.php

Things I've checked...
- The module files/folders I've created are all owned by and readable by the webserver.
- Double-checked I've copied the code right from the tutorial.
- No errors showing up in Apache error log.
- Restarted Apache.
- Log out and back in as CMSMS admin
- Enabling CMSMS debug mode in config.php doesn't provide any clues.

Running CMSMS 2.1.5 on Turnkey Linux VM (PHP 5.6.24, Apache 2.4.10)

Re: Help with Module Writing Tutorial

Posted: Wed Sep 21, 2016 11:37 am
by Jo Morg
nickt wrote:Holidays/holidays.module.php
Module Names are case sensitive... Holidays/Holidays.module.php. And directory, module file (where the class is declared) and module class name have to match.

Re: Help with Module Writing Tutorial

Posted: Wed Sep 21, 2016 11:54 am
by nickt
Thank you for the super-fast reply. That fixed it. :)

The issue of correct letter case in folder, file and class naming is highlighted on page 3 of the guide. I won't make that mistake again!