Re: pear webpage source

From: Date: Sat, 09 Nov 2002 10:35:18 +0000
Subject: Re: pear webpage source
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2684@lists.php.net to get a copy of this message
On Fri Nov 08, 2002 at 08:5202PM -0000, deco wrote: > I'm thinking of trying MVC on a site i'm developing, and i'm wondering > about the best way to implement the controller component... I was looking at > pear site when i found the wishlist.php file. How is the redirection being > done? Is wishlist.php a directory with a different file for each > contributor? Or, and this would be really nice, is wishlist.php being called > when http://pear.php.net/wishlist.php/mj, for example, is > requested? > Checking the source i found wishlist responds to > http://pear.php.net/wishlist.php?handle=mj, but there's a > line in there > getting the path_info: $user = basename($_SERVER['PATH_INFO']); > Is this supposed to do what i meant above? Yup, that's exactly the place. Basically wishlist.php is pretty similar to some fancy Apache rewrite rules, but with less overhead. If you want to get the source code of the PEAR website, have a look at the module pearweb on http://cvs.php.net/. -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.general (#2684) next »