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.
In CakePHP 1.3 I had an
Vendors cannot be loaded using
App::uses() in CakePHP, this is because CakePHP cannot expect external libraries to follow the same standards regarding folder and file naming. You can still use
App::import('Vendor', ...) as you did in version 1.3 of the framework.
App::import() for vendors is kind of silly, if you think about it. It is just an expensive, verbose and very silly wrapper for
In 2.0, we actually encourage people to use require or require_once for their Vendor libraries. You can get the location of the Vendor folder using
App::path('Vendor') or just
APP . 'Vendor' . DS.