Open zanbaldwin opened 12 years ago
I really hate stealing so much from the CodeIgniter project, but they do have one of the most amazing and efficient database libraries I have ever worked with. Don't bother with the ActiveRecord parts of the library, they are memory hungry and make lazy developers.
Create a library for MySQL database interaction. Most SQL statements for LessHub will be too complicated for ActiveRecord, so don't bother trying to implement it. Something simple like Drupal's db_query(), but object-oriented - Eventing library style!