PHP- How to include Codeingiter class in WordPress

I have to adapt Codeigniter module to WordPress. It fetches data with SOAP protocol. It needs to use Codeigniter’s csrf_protection.

How to include Codeigniter MY_Controller class in WordPress?

class Balance extends MY_Controller
{

    public function __construct()
    {
        parent::__construct();

        $this->config->set_item('csrf_protection', TRUE);

        require_once('addons/libraries/nusoap/nusoap.php');

    }

    ...

Read more here: PHP- How to include Codeingiter class in WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *