| 
| Subject: | For me it is not useful because I do... | 
|---|
 | Summary: | Package rating comment | 
|---|
 | Messages: | 3 | 
|---|
 | Author: | Maykonn Welington Candido | 
|---|
 | Date: | 2013-10-27 15:54:35 | 
|---|
 | Update: | 2013-11-06 23:58:49 | 
|---|
 |  |  |  | 
Maykonn Welington Candido rated this package as follows:
| Utility: | Not sure | 
|---|
| Consistency: | Sufficient | 
|---|
|  | 
  Maykonn Welington Candido - 2013-10-27 15:54:36For me it is not useful because I do not have the global $ database and $ conf.
 What are $ database and $ conf? These variables will probably not exist in the client applications. therefore:
 
 Do not make use of global ($database and $conn). Use the constructor to inject these properties in the class.
 
 public function __construct(Array $database, Array $conf) {
 $this->database = $database;
 $this->conf = $conf;
 }
  Jan Altensen - 2013-11-06 18:17:11 - In reply to message 1 from Maykonn Welington Candidothank you for this post
 i fix it later
  Jan Altensen - 2013-11-06 23:58:49 - In reply to message 1 from Maykonn Welington Candidook now fixed |