Orders::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        parent::__construct();
        //  calls the constructor
        if (!$this->customer->isLogged()) {
            // if customer is not logged in redirect to account login page
            redirect('account/login');
        }
        $this->load->model('Orders_model');
        // load orders model
        $this->load->model('Addresses_model');
        // load addresses model
        $this->load->library('currency');
        // load the currency library
        $this->lang->load('account/orders');
    }