Friday, September 19, 2014

Accessing Vendor classes in cakephp 3 Controller

Hi
I am using Mandrill API (from a composer pack) in my cakephp 3 project. I installed the mandrill as a vendor by editing composer.js file by adding the line "require": {
        "php": ">=5.4.16",
        "cakephp/cakephp": "3.0.*-dev",
        "mobiledetect/mobiledetectlib": "2.*",
        "cakephp/debug_kit": "3.0.*-dev",
        "mandrill/mandrill": "1.0.*"
    },
Now I have a folder named mandrill in my vendors folder. So as the next step how I can access the classes and functions of mandrill in my controller class. That means how I can include the library like we are doing with cake
use Cake\Event\Event; on top of controller class. And also how I can access the functions of mandrill classes

Thanks in advance.
Jipson

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: