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
Post a Comment