Quote from: seah0rse at Jan 31, 2007, 07:27 PM
Thanks for that. Looks promising similar to Hibernate, nHibernate, Castle Project etc a database agnostic datalayer with persistence. So is that already in ModX or up and coming? I guess my need is really about is ModX able to manage custom recordsets for the purpose of storing and maintaining the data and/or being able to present that to registered users or to the public? I guess what it would mean is having a tab in the manager section with say "Payments" as a heading and then the ability to page or search through records in a grid below that.... Can this kind of think be done without hacking the core of ModX?
Sorry if I am sounding like a total noob (I guess I am) 
Thanks Tim
It’s part of MODx 0.9.7 alpha, which is circulating through the testing team at the moment, but should be available as a public beta shortly. In the meantime, Susan’s approach is perfectly valid and if it meets your needs, great. I was just trying to demonstrate that in the future, we are planning to add a Model management interface that will allow end-users to define and generate xPDO scaffolding classes to represent just about any kind of data they need stored to a database, and it will take care of the details of creating the tables, managing table structure changes, etc.
But you can also use xPDO now, within existing MODx deployments, and it includes helper classes for forms and tables for use with MODx, as well. Just an alternate, object-oriented approach using the new PDO database layer that is a standard part of PHP 5.1+. For example, I’ve created several custom web applications from scratch with it, I’ve reverse-engineered osCommerce databases with it which were used to create Smarty views that replace the internal rendering system, and I’ve taken other existing custom web applications and easily transformed them into xPDO API’s, which typically reduce the amount of code in those existing applications by a significant factor.