Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class init{
- protected $db;
- private $cache;
- private function __construct() { // tak wiem że jest prywatny ale to dla tego że ta klasa bd singletonem xD
- require_once "config.php";
- require_once "class/Mysqli.php";
- require_once "class/cache.php";
- $this->cache = new Cache();
- $this->cache->test();
- }
- protected function link() {
- $this->db = new MysqliDb (dbhost, dbuser, dbpass, dbbase);
- }
- }
- class cache extends init{
- public function __construct(){
- $this->link();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement