Getting Started
Developing modules is as easy as snapping your fingers, which should be easy for most! Before you can start writing code you should understand how modules are organized in the directory heirarchy and a few other tidbits. Don't sweat it, no one likes reading documentation so I'll try to keep it short!
How do I create a Package?
Simply make a directory in the /modules and woolah! You've now created a package. Easy as key lime pie.
/modules/package_name
Packages reside in the modules directory and should be in the same format with lower case letters and underscores.
How do I create a Module?
Creating a module is as easy as creating a package and can be summerized in three simple steps.
1. Create module directory.
Name the module directory after the module. If the module is called 'MyModule' the directory is /modules/some_package/MyModule.
2. Create the module php file.
Create the file Main.class.php in the module's directory. An example module skeleton follows below...
[code]
[/code]
3. Coffee break!
After that exhausting mental workout its probably best to take a break.
Why shouldn't I throw all my custom modules in a giant folder?
Would you throw all your clean clothes on the floor? Of course not! You keep them organized in drawers. This way you know exactly where everything resides! Packages are generally used to group all of the modules for a single website together. Why do this you ask? If you're running 5 websites off a single PowerPortal distribution having packages with descriptive titles (eg. PersonalWebsite, MyBusiness, ClientSite,...) can keep things organized making maintenince a breeze.








