Re: @foo@ / templates / sub packages

From: Date: Fri, 02 May 2008 16:31:41 +0000
Subject: Re: @foo@ / templates / sub packages
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-49963@lists.php.net to get a copy of this message
On Fri, 2008-02-05 at 09:08 -0700, Joe Stump wrote: > 1.) Does anyone have a definitive list of variable names the PEAR > installer will replace via the @foo@ stuff? > I don't think the list of what can be inserted is in the manual. I think the list is automatically obtained from the structure of PackageFile/v2.php but I'm not 100% sure about that. Perhaps Greg could shed some light? > 2.) Where do people put template files? If you use @data_dir@ and > expect your code to have that expanded how do you easily test without > packaging and installing? > I've had difficulty with this as well. For one package (not currently in PEAR), I used: if (substr('@data-dir@', 0, 1) === '@') { $filename = ... // development environment filename } else { $filename = '@data-dir@/foo/bar'; } Mike

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