• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
just a quickie

#5
[eluser]sore eyes[/eluser]
hi ray, thanks for responding

I changed the controller to:

Code:
function enterNextShop()
    {
        $old_shop_id =3;
        $data = $this->MShops->getNextShop($old_shop_id);
        $shop_id = $this->data->row()->shop_id;
        redirect('welcome/enterShop/'.$shop_id);
        
    }

(using a constant for the old_shop_id, just to rule any prior errors) and I get an error message

Message: Undefined property: Welcome::$data line 36
Fatal error: Call to a member function row() on a non-object in C:\Program Files\xampp\htdocs\retailers\system\application\controllers\welcome.php on line 36

any ideas?


Messages In This Thread
just a quickie - by El Forum - 12-30-2008, 11:05 PM
just a quickie - by El Forum - 12-31-2008, 05:02 AM
just a quickie - by El Forum - 12-31-2008, 06:31 PM
just a quickie - by El Forum - 12-31-2008, 07:05 PM
just a quickie - by El Forum - 01-01-2009, 03:30 AM
just a quickie - by El Forum - 01-01-2009, 09:57 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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