• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.