Welcome Guest, Not a member yet? Register   Sign In
PHP5 SoapServer and Controllers Practice
#2

[eluser]fafworx[/eluser]
aloha,

in order to do mvc try this:

Code:
/**
     * default controller dispatcher
     *
     * @param void
     * @return void
     */
    public function Index()
    {
        $this->load->model('Tctrl');
        $_server    = new SoapServer(DL_WSDL);
        $_server->setClass("Tctrl");

        // look what methods there are
        var_dump($_server->getFunctions());

        $_server->handle();
    }

and all that soap class functions do in this model. that works for me.
if you dont want to have the extended methods from ci's model class in your soap class, you have to do it your old way.


Messages In This Thread
PHP5 SoapServer and Controllers Practice - by El Forum - 03-18-2008, 12:57 PM
PHP5 SoapServer and Controllers Practice - by El Forum - 10-06-2008, 07:48 AM
PHP5 SoapServer and Controllers Practice - by El Forum - 10-06-2008, 08:02 AM
PHP5 SoapServer and Controllers Practice - by El Forum - 10-06-2008, 02:05 PM
PHP5 SoapServer and Controllers Practice - by El Forum - 10-06-2008, 03:03 PM
PHP5 SoapServer and Controllers Practice - by El Forum - 10-06-2008, 03:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB