connect Braintree php sdk with yii -


how can connect braintree php sdk yii.i have placed sdk files in component folder , calling main file in controller like: include yii::app()->basepath.'/components/braintree/lib/braintree.php';

but shows error me include(braintree_configuration.php): failed open stream: no such file or directory.can me?

standard practise include third party library in yii (1.x) put code under protected/vendors directory, i.e. protected/vendors/braintree.

then include file in code this.

yii::import('application.vendors.*'); require_once('braintree/lib/braintree.php'); 

make sure have provided read permissions braintree folder.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -