Skip to content

Instantly share code, notes, and snippets.

@realityking
Created November 28, 2011 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realityking/1401435 to your computer and use it in GitHub Desktop.
Save realityking/1401435 to your computer and use it in GitHub Desktop.
Joomla autoloader naming convention
-All classes have to start with a J to be considered by the autoloader
-Class names have to be camel cased
-Every uppercase letter marks a new folder
-If there's only one part it is repetead
Examples:
-JDatabase would have to be in database/database.php
-JDatabaseExporter would have to be in database/exporter.php
-JDatabaseExporterCvs would have to be in database/exporter/cvs.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment