I am working on a custom module for my client, according to the documentation my file should be mod.package_name.php and the class should be Package_name_mod.
However I get errors when I conform to these instructions
Fatal Error: Package_name not found in /var/www/ee-sdbox/system/expressionengine/libraries/Template.phpIf I remove the _mod suffix then the class works just fine. Am I missing something? I want the module to follow EE conventions as much as possible.
It looks like this is a case of the documentation being incorrect. I see in a few places the docs reference Package_name for modules but in one spot (http://ellislab.com/expressionengine/user-guide/development/modules.html) it mentions the _mod suffix. It looks like it’s a botch copy/paste/replace job from the mcp.package_name.php copy higher up on the page.
The class name should not have a suffix of _mod. I’ll see if I can verify this with an EllisLab dev but I’m pretty sure I’m right.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.