Re: Loading external vendor's in CakePHP 3

2015-11-24 Thread Mani
Works fine in Cake2 using require_once however falls over in Cake3. How did you get it to work. My code is as follows: require_once(ROOT.'/vendor/twilio/sdk/Services/Twilio.php'); $this->client = new Services_Twilio(Configure::read('Twilio.sid'), Configure::read('Twilio.token')); I get Class n

Re: Loading external vendor's in CakePHP 3

2015-02-11 Thread HVan
Nevermind - I forgot to add use Services_Twilio; at top of the controller. Duh! On Wednesday, February 11, 2015 at 2:51:03 PM UTC-8, HVan wrote: > > Maybe it's just me but I just can't figure this out. I'm trying to use > Twilio (https://github.com/twilio/twilio-php) with Cake 3. I installed >

Loading external vendor's in CakePHP 3

2015-02-11 Thread HVan
Maybe it's just me but I just can't figure this out. I'm trying to use Twilio (https://github.com/twilio/twilio-php) with Cake 3. I installed via composer. At the top of bootstrap.php it includes vendor/autoload.php, however, no luck; Twilio functions are not called. So I manually required it i