has somebody used of Preapproval API of Paypal?

Recently I am trying to use Preapproval API of Paypal to handle some process, the example code get from https://www.x.com/community/ppx/sdks,

in the code, when i want to import the library of this API (locate in php-sdk/samples/web/lib), i do as follow:

  1. make a vendors folder under application folder.

  2. copy the files from lib to protected/vendors/paypal,

  3. Import in the controller.

But that, when I use code as below, I got nothing, even the errors, just a blank page.




class SiteController extends Controller




If i remove the code


then the page can render and display.

Is it that the way i locate and import the paypal wrong? Or another reason to cause the problem?

Can someone help me?

Thank you.

Bad luck, no body knows…

But now i write the code follow the tutorial and set it as a component.