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)
Help with Module Writing Tutorial
Re: Help with Module Writing Tutorial
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.nickt wrote:Holidays/holidays.module.php
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Help with Module Writing Tutorial
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!
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!