Welcome Guest, Not a member yet? Register   Sign In
Model Problem
#1

[eluser]MMCCQQ[/eluser]
i got a problem

Quote:Fatal error: Call to undefined method Core::Spot_info() in C:\AppServ\www\ts\application\controllers\main.php on line 26

Line 26 : $info['data'] = $this->Core->Spot_info();

Core Model
Code:
function Spot_info()
        {

            $this->db->where('iduser', $this->id);
            $query = $this->db->get('spot');

            if ($query->num_rows() > 0)
            {


                return $query;

            }
            else
            {

                return;
            }


        }
#2

[eluser]Fougner[/eluser]
Is the Core modded, or is it an expansion from your side?
I'm a newbie, but as far as I can tell, you need to load the model from your controller. Dunno if you did or not.

Good luck!

// Alex




Theme © iAndrew 2016 - Forum software by © MyBB