Code
Version 4 (Cameron Fackler, 01/22/2009 11:44 PM)
| 1 | 1 | h1. Code |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 1 | RPInventory is written entirely in PHP using MySQL as the database back end. |
|
| 4 | 1 | ||
| 5 | 1 | To separate business logic from presentation logic, we use the "Smarty Template Engine":http://www.smarty.net/. This engine allows us to create "template" files that describe the layout of each page separate from the PHP files that retrieve the data. |
|
| 6 | 1 | ||
| 7 | 1 | RPInventory also uses the "Prototype JavaScript framework":http://www.prototypejs.org/ for dynamic content (AJAX) |
|
| 8 | 1 | ||
| 9 | 4 | Cameron Fackler | We have a Subversion repository set up that the "live page":http://demo.tuxygentoo.com/ draws from during each commit to the repository. Anonymous read-only checkouts are allowed; use the url http://tuxygentoo.com/svn/RPInventory/. |
| 10 | 1 | ||
| 11 | 1 | h2. Coding Standard |
|
| 12 | 1 | ||
| 13 | 1 | * Camel case variable names |
|
| 14 | 1 | * Use variable names that describe its contents (Foo is not acceptable!) |
|
| 15 | 1 | * Opening brackets on the next line |
|
| 16 | 1 | * NO global variables |
|
| 17 | 1 | * Function names use camel case |
|
| 18 | 1 | * Comment your code with descriptive comments |
|
| 19 | 1 | * When indenting, use the tab character. |