Help with Module Writing Tutorial

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Locked
nickt
New Member
New Member
Posts: 2
Joined: Wed Sep 21, 2016 10:39 am

Help with Module Writing Tutorial

Post 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)
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: Help with Module Writing Tutorial

Post 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.
"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!
nickt
New Member
New Member
Posts: 2
Joined: Wed Sep 21, 2016 10:39 am

Re: Help with Module Writing Tutorial

Post 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!
Locked

Return to “Developers Discussion”