pi-engine / pi

Multi-tenant application development engine for cloud ready SaaS platform.
http://www.piengine.org
202 stars 115 forks source link

Load external class #710

Closed voltan closed 10 years ago

voltan commented 10 years ago

Hello

I need to load and use nusoap class on some module ( for use on bank getaway ) , How I can load it ? ( http://sourceforge.net/projects/nusoap/ )

It doesn't work by :

require_once Pi::path('vendor') . '/nusoap/nusoap.php'; 

And I have not found error

taiwen commented 10 years ago

It is the correct way to load. I checked.

Remember to use full namespace for nusoap, like

$client = new \nusoap_client(....);
voltan commented 10 years ago

Thanks, finally it work and I use full namespace