PHP Classes

Usage analysis

Recommend this page to a friend!

      Model  >  All threads  >  Usage analysis  >  (Un) Subscribe thread alerts  
Subject:Usage analysis
Summary:Quick guide
Messages:2
Author:Darren Conyard
Date:2013-01-02 14:30:07
Update:2013-01-14 13:40:10
 

  1. Usage analysis   Reply   Report abuse  
Picture of Darren Conyard Darren Conyard - 2013-01-02 14:30:07
Hi Joao,

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.

Best Regards

Darren Conyard

  2. Re: Usage analysis   Reply   Report abuse  
Picture of João Mário Nedeff João Mário Nedeff - 2013-01-14 13:40:10 - In reply to message 1 from Darren Conyard
Hi Darren,


Thank you for the feedback.

I'm writting an update for this class, which should be available soon.

I'll consider your remarks.


Best regards,



João