Welcome Guest, Not a member yet? Register   Sign In
Problem printing a result using CodeIgniter
#1

(This post was last modified: 05-26-2020, 11:02 AM by mortimasyo.)

I'm trying to print correctly a result that I get from one of my models but I keep getting this error: "Trying to get property of non-object"
I think it's a bit hard to explain (probably not, but it is for me) so I made a short video explaining the problem. 192.168.10.1 192.168.1.1 10.0.0.0.1
https://www.youtube.com/watch?v=S9mcO4u8FRM
Hope somebody can help me out. Thanks in advance.
Reply
#2

(This post was last modified: 05-24-2020, 02:27 AM by jreklund.)

Hi, could you do a <pre> output instead, it's quite hard to see the structure with everything on the same row.
Code:
echo '<pre>';
echo var_dump($data['ventas']);exit;

Can you do this as well? It dosen't populate your array of objects correctly.

Code:
echo '<pre>';
echo var_dump($this->compra_model->getTempByCompraId($compra_id4real[0]));exit;
Reply




Theme © iAndrew 2016 - Forum software by © MyBB