Anyone have idea why on this code:
Controller:
class GeneratedInvoices extends CI_Controller {
    public function __construct() {
        parent::__construct();
        $this->load->library("Inv_bg");
        $this->load->helper('url');
    }
    public function index(){
        $data['invoices'] = $this->Inv_bg->getInvoices();
        $this->load->view('GeneratedInvoices', $data);
    }
}
And library
public function getLists($type)
    {
        $response = \Httpful\Request::get($this->baseURL. $type)
                    ->authenticateWith($this->username, $this->password)
                    ->sendsJson()
                    ->expectsType("json")
                    ->send();
        return json_decode($response, true);
    }
    public function getInvoices()
    {
        $invoices = $this->getLists("invoices");
        return $invoices['invoices'];
    }
Gives me an error such as:
Message: Undefined property: GeneratedInvoices::$Inv_bg
I know that is issue because I worked first on Windows and uploaded this code on a Linux server, but I can't find the error :)
 
    