I am relatively new to PHP, so I thought the following pointers may be useful to include for beginners like me.
Firstly, I do not think this through any fault of your own but PHP classes does not link your model class to your previous DConnect and Configs classes.
Maybe a quick note within the files can point the users in the right direction to get the most out of your classes.
Next when I check for any errors that appear when using insert.php or update.php, a few variables are missing single quotations:
Configs on line 47 of insert.php and update.php
id on line 82 of model.php
date_created on line 89 of model.php
date_updated on line 91 of model.php
Also the variables 'keys' and 'values' are not instantiated on lines 112 and 113 of model.php.
Once it is all plugged together it works nicely and the code is neat too, its a really useful class, thanks again.
João Mário Nedeff
|2013-01-14 13:40:10 - In reply to message 1 from Darren Conyard|
Thank you for the feedback.
I'm writting an update for this class, which should be available soon.
I'll consider your remarks.