News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SaniSoft Blog:
Help! vendor() is deprecated.
May 12, 2008 @ 09:35:48

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.

0 comments voice your opinion now!
vendor cakephp framework deprecated trick underscore subdirectory


blog comments powered by Disqus

Similar Posts

SaniSoft Blog: Bugs & enhancements for Auth component in CakePHP v1.2 - Part 1

Community News: CakePHP Framework Releases Version 1.0

Felix Geisendorfer's Blog: Cake 1.2’s Set class eats nested arrays for breakfast!

Phil Sturgeon's Blog: CodeIgniter 2.0 is stable (enough)

Jim Plush's Blog: MyBic - New Release and SourceForge Ranking


Community Events





Don't see your event here?
Let us know!


configure install api laravel introduction library symfony interview developer community language podcast application series code wordpress list release unittest threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework