News Feed
Jobs Feed
Sections




News Archive
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: Theming your CakePHP apps (V1.2)

Refulz.com: CakePHP evolves to 2.0

PHP-Coding-Practices.com: Making CakePHP's Pagination work with Model::expects()

Community News: CakeFest 2008 Announced (and a Call for Papers)

Symfony Blog: symfony 1.0.4 released


Community Events











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


introduction database api composer release application functional podcast development series opinion framework interview community phpunit language code zendframework2 example testing

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