PowerPortal
Documentation
Live Demo
Download Now
PowerPortal 2.0.13
Released on March 4th
tar.gz | zip
Featured Site
Advertise here for free!
Free advertising for sites running PP. Click to learn more!
[advertise here for free]
Who Is Online
1 user(s) active browsing the site.
1 Guest(s), 0 Member(s)
38.103.63.x
 
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.
 
Latest Poll
What is your primary use for a portal system?
Community/Social
Blog/Personal
Business
Quick Login
Username
Password
Register
Random Image
Quick Search