PHP5 Table Model Classes and Framework Failings
I’ve been doing a bit of development in PHP frameworks lately, and the way that they handle models in their Model/View/Controller setup has be bothered. The major issue is that the frameworks aren’t using PHP5, and so they can’t take advantage of “true” objects for data retrieval and operation.
One fancy thing we’ve done with Habari is use PHP5’s built-in PDO classes. Apart from giving us access to many database types (MySQL, Postgres, MSSQL, SQLite, etc.) simply by changing the connection string, it allows us to tell the engine to store retreived record information not just in a generic class, but in a class that we define.
