RSS feed - Using POG with Flex
- Optimizing your web application
- Regenerating large objects
- PHP4 or PHP5
- New and Improved
- Evolution of a cube
- POG Museum
- POG 3.0 alpha
- Initial Performance results Part 2
- Initial performance results
- Proposal: POG 3.0 object model
- Suggest a feature
- A new year, A new POG release
- Many-Many relations
- POG 2.5 Released
- POG 2.5 beta
- Automatic table alignment
- New version: 2.1.2 released
- RSS should work well now
- RSS feed glitches
- What's new in 2.1.0
- PHP Objects 2.1.0 (preview)
- PHP Object relations FAQ
- PHP Object Relations
- Searching base64 encoded text
- How to debug POG-generated objects
- POG UI Tips
- Featuring Of Interest links
- PHP CRUD
- POG 2.0.1: A better code generator
- A look at the POG SOAP API
- POG 2.0.0 released
- Coming soon: Generate parent-child objects
- Generated abstraction v/s dynamic abstraction
- Zend Framework preview
- Coming soon: Generate Objects through SOAP
- Easily save images and files to a database
- PHP, Paypal & POG
- Five advanced Code Generator tips
- PHP Pagination using generated objects
- PHP Code Generator benchmarks
- Representing database objects using an AJAX Tree interface
- Using SETUP in a production environment
- Description of the generated object package
- Introducing PHP Object Generator version 1.6
- Using AJAX and PHP Object Generator
- When to use Object->SaveNew()
- Generating PHP objects in 2006
- Happy Holidays
- A short video of the POG Setup process
- A sneak peek at POG 1.6
- POG Tip: Field limits
- Previous versions.
- Searching the blog and tutorials sections
- Generating code with "Other" SQL data types
- Five general POG tips
- POG source code locations
- Microsoft SQL 2005 Express Edition
- Impatiently awaiting PHP 5.1 and PDO
- Php Object Generator goes open source
- POG generates PDO compatible code
- Oracle to offer free database
- POG Google group
- Database Wrappers and POG
- Revisions
- The generator blog
- An explanation of the 'Escape' function.
- Mirror, mirror
- Using POG to solve real world problems
- A php object-relational database tool
- A simple and flexible Object Oriented approach to PHP
Back to the Code Generator
The POG Google group
The POG tutorials/code samples
The POG mirror site
Five advanced Code Generator tips
written 2178 days agoFollowing our previous article: Five general POG tips, we’ve now compiled 5 of our favorite “advanced” tips for the more experienced POG users out there. So here it goes:
1. Reposition attributes
One of the latest ‘hidden’ features recently introduced allows users to reorder the attribute and type fields. A typical scenario is that you have an object with several attributes and you’ve decided you needed to add a few more. If you click on the “Add Attribute” button, your attributes are added at the bottom of the list. However, you can easily reposition the field order by clicking on the attribute name field and using your using the Up and Down Arrows of your keyboard to move the attribute up and down the list! (currently buggy in Safari, sorry)
2. Naming conventions
This tip was already mentioned as part of the previous article but we can’t stress enough the importance of having a good naming convention within your object and attributes. We recommend camel case or using the underscore character for your attributes. For example, “firstName” (camel case) or “first_name” (underscore). Having a good naming convention will not only improve code cleanliness, but it’ll also be extremely helpful when we introduce new POG features soon.
3. Customize object attributes
POG, by default, offers the most common attribute types, for e.g. VARCHAR ( 255 ) and INT ( 11 ). However, you can easily customize the length of the attribute to fit your needs. If you only need VARCHAR ( 20 ) for instance, simply choose “Other” from the drop down list and type the attribute type you need.
4. Use POG with databases other than MySQL
Because POG is compatible with PDO, you can use generated objects with databases other than MySQL, such as SQLite, Firebird, PostgreSQL, or even SQL server!. Our tutorials cover examples of how to use these alternative databases. Feel free to take a look around!
5. Stay in the loop
The POG development team works on improvements and new features daily, (yes every day!). As we make new annoucements, make sure you hear about them by subscribing to our RSS feed and subscribing to our Google group. As we strive to provide the best PHP code generator possible, we also appreciate feedback. A high proportion of cool features that are unique to POG were in fact suggested by developers like you. So don’t be shy and leave us a note on our Google group!

This is a weblog about the Php Object Generator (POG) project, OO PHP, databases and Php code generators in general.
Php Object Generator, (POG) is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application.
Subscribe to our RSS feed
Feedback, Feature Requests, Bugs to:
The POG Google group
Send us a Hello through email