Development Blog With Code Updates : Developercast.com

May 12, 2008

SaniSoft Blog: Help! vendor() is deprecated.

Filed under: Development — @ 10:35 am

On the SaniSoft blog today, Tarique Sani has a quick hack for CakePHP users needing to transition over from the deprecated vendor() call – import().

Use of vendor() function to load third party libs in CakePHP has been deprecated for some time now… It has been replaced with the more generic App::import() the usage is simple.

There’s also a little trick you’ll need to know for files with underscores (drop it and replace with an uppercase) and how to get it to be a bit more flexible and recognize vendor files in subdirectories or ones differently named.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress