function __construct() { if (!application_exists(APP)) { showmessage(L('application_not_exists')); } $this->spend_db = Loader::model('pay_spend_model'); parent::__construct(); }
public function __construct() { if (!application_exists(APP)) { showmessage(L('application_not_exists')); } parent::__construct(); $this->pay_db = Loader::model('pay_payment_model'); $this->account_db = Loader::model('pay_account_model'); $this->_username = cookie('_username'); $this->_userid = intval(cookie('_userid')); $this->handle = Loader::lib('pay:pay_deposit'); }
public function __construct() { if (!application_exists(APP)) { showmessage(L('application_not_exists')); } parent::__construct(); $this->db = Loader::model('pay_payment_model'); $this->account_db = Loader::model('pay_account_model'); $this->member_db = Loader::model('member_model'); $this->modules_path = APPS_PATH . 'pay' . DIRECTORY_SEPARATOR . 'module' . DIRECTORY_SEPARATOR; Loader::lib('pay:pay_method', false); $this->method = new pay_method($this->modules_path); }