Jump to content

barraclm

New Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About barraclm

  • Rank
    Newbie
  1. 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.