![]() |
Using models in soap webservice server - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Using models in soap webservice server (/showthread.php?tid=32405) |
Using models in soap webservice server - El Forum - 07-22-2010 [eluser]excitedcroc[/eluser] Hi, I am having difficulty getting my remote nusoap web service to use models correctly? Please see the code below ... I am getting a php error saying that PageModel::$db is not defined. Although if I go to the script directly as if were a controller the code runs fine! Do I need somehow to tell Codeigniter to allow SOAP calls to access it properly ? Here is my code, I am accessing it via a client which calls server.get_page(). The call is a success and even loads the model. However as soon as I try to query the database it complains that db is not defined in the model. Thanks for any suggestions ... Code: <?php |