public function __construct() { parent::__construct(); $this->load->library('paypal_express/payexp/SetExpressCheckout', array(), 'SetExpressCheckout'); $this->load->library('paypal_express/payexp/DoExpressCheckoutPayment', array(), 'DoExpressCheckoutPayment'); $this->load->library("cart"); $this->load->model("checkout_model"); }
function __construct() { parent::__construct(); $this->load->library("cart"); $this->load->model("checkout_model"); if ($this->session->userdata('user_detail')['role'] != 2 || $this->session->userdata('user_id') == "") { redirect(""); } }