Location: PHPKode > projects > PhxENGINE > core/core.php
<?php defined('phxENGINE') or exit;

class Core_Core {
    public $db;
    public $tpl;
    public $lang;
    public $alang;

    public function __construct() {
        global $config;
        global $lang;
        global $call;
        
        $this->__loadexternal('smarty', 'Smarty.class');

        $this->db  = new Database_Library(DB_DRIV, DB_HOST, DB_NAME, DB_USER, DB_PASS);
        $this->tpl = new Smarty();
        $this->tpl->template_dir = PATH.'/'.DIR_TPL;
        $this->tpl->compile_dir = PATH.'/'.DIR_CMP;
        $this->lang = $lang;
        $this->alang = $call['lang'];
    }

    public function __loadexternal($classdir, $filename) {
        if(file_exists(PATH.'/'.DIR_EXT.'/'.$classdir.'/'.$filename.'.php')) require_once(PATH.'/'.DIR_EXT.'/'.$classdir.'/'.$filename.'.php');
    }
}

?>
Return current item: PhxENGINE