CakePHP Call to undefined function vendor() Error
Vendor() functionbasically used to load third party library in CakePHP. This function have been deprecated in the recent CakePHP releases. The vendor function in earlier CakePHP releases has been replace with new App::import method that is more user friendly and allow you to include third party library in several ways.
To fix the issue simply replace vendor function with new method. New import method return boolean true or false depend on the library loaded or not. This is useful in some context. With new import method you have option to verify third party library loading and act accordingly so your application never fail.
Old Method
vendor('facebook/facebook');
New Method
App::import('Vendor', 'facebook/facebook');
Read Related Post
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.



Leave a Reply