News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

SaniSoft Blog:
Help! vendor() is deprecated.
0 comments :: posted Monday May 12, 2008 @ 09:35:48
voice your opinion now!

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.

tagged with: vendor cakephp framework deprecated trick underscore subdirectory


Antoine Ughetto's Blog:
Easy way to find a file in subdirectory with php
0 comments :: posted Monday February 18, 2008 @ 11:15:00
voice your opinion now!

Antoine Ughetto has posted an easy way to find a file inside any series of subdirectories with PHP:

I've made a previus post on SPL using RecursiveIterator to parse Array. Today we will use this same RecursiveIterator with a DirectoryRecursiveIterator.

The code is pretty simple and straight forward - a DirectorySearch class that takes in the directory name and recurses through the files and subdirectories to locate the file you're looking for.

tagged with: directoryrecursiveiterator find file subdirectory


code conference package zend mysql ajax pecl book database security application job cakephp releases release developer framework PHP5 PEAR zendframework

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