Skip Navigation
Using Connect_init.php in Customer Portal
Answer ID 10050   |   Last Review Date 10/11/2019

When should I add Connect_init.php to scripts when developing in Customer Portal?


Customer Portal
Oracle B2C Service, All versions


The documentation for Connect for PHP (CPHP) API authentication is in the 'API access control and authentication' section of the CPHP Developer Guide. This documentation states that "in order to use Connect for PHP with the Customer Portal (CP) access point, you have to initialize the API using the initConnectAPI() function". This statement is true but it is important for developers to understand that CP calls the initConnectAPI() behind the scenes, and CP customizations need not (and should not) include the function.

For further information please see Answer ID 5169: Technical Documentation and Sample Code

Notify Me
The page will refresh upon submission. Any pending input will be lost.