alternative to allfiles.php, comments?

From: Date: Mon, 27 Aug 2007 02:46:28 +0000
Subject: alternative to allfiles.php, comments?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47848@lists.php.net to get a copy of this message
Hi all, Another possible solution to the "make it easy for beginners" problem would be to offer this syntax: <?php require '/full/path/to/PEAR2/PackageName.php'; PEAR2::PackageName::beginnerSetup(); ?> the beginnerSetup() static method would do what allfiles.php does in the current proposal. If we have auto-generated allfiles.php, it would be possible for beginnerSetup() to simply be: static function beginnerSetup() { require dirname(__FILE__) . '/PackageName/allfiles.php'; } This should be a more intuitive solution for beginners. Comments? Greg

« previous php.pear.dev (#47848) next »