Welcome Guest, Not a member yet? Register   Sign In
flexi cart - A comprehensive shopping cart library for CodeIgniter

[eluser]Miguel Suárez[/eluser]
Hello, nice library!!

I'm currently trying to merge it into my CMS, but have hit a wall on the admin side. Im getting some errors:

Code:
A PHP Error was encountered
Severity: Notice
Message:  Trying to get property of non-object
Filename: models/flexi_cart_lite_model.php
Line Number: 1025
....
and more

Checking that line, $this->flexi is NULL, but I have in my controller's constructor:
Code:
$this->flexi = new stdClass;
$this->load->library('flexi_cart_admin');

And all I'm doing in the controller's method is:
Code:
$sql_where = array(
      $this->flexi_cart_admin->db_column('order_summary', 'order_number') => $order_number
);
$data['summary_data'] = $this->flexi_cart_admin->get_db_order_summary_row_array(FALSE, $sql_where);

And then at the end of all the errors: Call to an unknown method : "get_db_order_summary_row_array"

On the frontend side, I merged withought any problems.

What could it be?

EDIT: Nevermind, I just found out that another library that I was loading (one of mine) has in the contructor: parent::__construct(); and was interfering with yours somehow.


Messages In This Thread
flexi cart - A comprehensive shopping cart library for CodeIgniter - by El Forum - 05-12-2014, 03:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB