This object is in archive! 

Can camelCase be used in (module) folder names?

Archived Stefan B. 11 years ago

Hi,


Yesterday I started building a module named 'questionMailer'. I named the module folder 'questionMailer' as well. This caused the 'handlers/Events.php' file to not be included and 'library/Singular/Bootstrap.php' to throw a warning on line 712, saying the event handler does not exist as its file is not included of course.


The module tutorial describes that the use of hyphens and underscores is allowed and that special characters are disallowed. It does not say anything about uppercase characters being neither allowed nor disallowed. Hence my question, can camelCase be used in module folder names?


Thanks in advance.


Best regards,

Stefan

Best Answer
photo

Stefan,


CamelCase names are not allowed for OS compatibility reasons.

You may use dashes instead. Example: question-mailer.

Replies (2)

photo
1

Stefan,


CamelCase names are not allowed for OS compatibility reasons.

You may use dashes instead. Example: question-mailer.

photo
1

Hi Paul,


Thanks for your answer, I'll go with the dashes then.


Best regards,Stefan

Replies have been locked on this page!