I\'m currently upgrading one of our projects to CakePHP 2.0. Unfortunately the \"first line\" of code makes problems, and I can\'t find a solution to that problem.
I
Assume you'r vendor file located /app/vendors/facebook/facebook.php here.
/app/vendors/facebook/facebook.php
The following line should do the same like App:: import() in the older version of CakePHP
require_once(ROOT . DS . 'app' . DS .'Vendor' . DS . 'facebook' . DS . 'src' . DS . 'facebook.php'); $facebookApi = new facebook();