• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Help with Module Writing Tutorial
PostPosted: Wed Sep 21, 2016 11:17 am 
Offline
New Member
New Member

Joined: Wed Sep 21, 2016 10:39 am
Posts: 2
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)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with Module Writing Tutorial
PostPosted: Wed Sep 21, 2016 11:37 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Mon Jan 29, 2007 4:47 pm
Posts: 1737
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 Conduit | CMSMS Docs
Help Support CMSMS
My developer Page on the Forge | Yet another blog about CMSMS

GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with Module Writing Tutorial
PostPosted: Wed Sep 21, 2016 11:54 am 
Offline
New Member
New Member

Joined: Wed Sep 21, 2016 10:39 am
Posts: 2
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!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting