- Introduction to POG
- Setting up PHP, MySQL etc.
- Designing your objects
- Generating your code
- Description of the generated code
- Edit configuration file
- The Setup Process
- Using the code: Save()
- Using the code: Get()
- Using the code: SaveNew()
- Using the code: GetList()
- Using the code: Delete()
- Using the code: DeleteList()
- Advanced: object relations
- Advanced: Set{Parent}()
- Advanced: Get{Parent}()
- Advanced: Add{Child}()
- Advanced: Get{Child}List()
- Advanced: Save(deep)
- Advanced: Delete(deep)
- Advanced: Add{Sibling}()
- Advanced: Set{Child}List()
- Advanced: Set{Sibling}List()
- Advanced: Get{Sibling}List()
- Advanced: DeleteList(deep)
- Customizing POG-generated code
- Customizing: Extending POG Objects
- Customizing: Plugins
- Examples
- Examples: User registration system
- Examples: User authentication
- Examples: Survey form
- Examples: Using POG with AJAX
- PDO: Introduction
- PDO: SQLite example
- PDO: Firebird example
- PDO: PostgreSQL example
- PDO: MySQL example
- PDO: ODBC example
- Troubleshooting
- Troubleshooting: Data appears encoded
- Troubleshooting: Can't regenerate object
- Troubleshooting: Can't seem to Save()
- Troubleshooting: Can't get object / object attributes from database
- Troubleshooting: Can't open zip file on Mac
- Troubleshooting: Setup screen is blank
- Videos
- Appendix: Creating table(s) manually
- Appendix: Regenerating objects
- Appendix: Generating objects using SOAP
- Case Study: Gravity GTD
- Case Study: Web Form Factory
Back to the Code Generator
The POG Weblog and RSS feed.
The POG Google group
Generating your code
Generate your code and download the zip file generated.

Extract the contents into a folder. You should see 2 folders 3 folders and 1 file, as shown below. The “objects” folder contains your generated object(s) along with a database wrapper. The “setup” folder contains the setup file(s) and image(s). The plugins folder contain a base64 plugin by default. More ‘official’ as well as 3rd party or even home-brewed plugins can be added to this folder for added functionality.

This is a detailed view of the folder hierarchy and contents of the generated object package:
POG 3.x generated package structure:

The objects folder contain your generated objects.
The setup folder contains POG setup which will help you get things up-and-running after you’ve done the code generation part.
The plugins folder contain, by default, the base64 plugin that we provide in case you want seemless encoding-decoding of your data.
The configuration file is, as the name indicates, is the only file you need to edit to get things running.
NOTE:
If you’ve used POG 2.x before and compare this ‘new’ package structure (POG 3) over the one POG 2.x generated a couple of months ago, you’ll notice things have become slightly more complex, as we’ve added some new functionality. However, things are still in-line with our original philosophy of keeping things as simple and clean as possible.
POG 2.x generated package structure:

Proceed to next step of the tutorial ››


