Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Everything posted by barraclm

  1. Thanks to everyone who replied. I am now sorted. I have brought better clarity to the structure of my application and that has helped me see some problems that I was causing myself.
  2. My script has 3 classes (that are relevant to this discussion): DB, User and Validate. They are all in independent files and loaded automatically, when required, by an autoloader. Both the User class and the Validate class have a private variable $_db which is instantiated by their class constructor: $this->_db = DB::getInstance(); At the top of the script I declare new instances: $user = new User(); and $validate = new Validate(); I then call a method in $user: $found = $user->findInUsers ( .... ) From within the findInUsers method I then want to call the query method in the DB
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.