Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 253976

Summary: app.class.php doesnt allow for a global app-config.php file
Product: Community Reporter: Nathan Gervais <nathan>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: karl.matthias
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch to allow a global app-config.php none

Description Nathan Gervais CLA 2008-11-05 14:04:59 EST
Created attachment 117130 [details]
Patch to allow a global app-config.php

Currently in order to use the app-config.php file to set local settings for $App the app-config.php file needs to be in your current working directory.  

This is tedious to maintain if you are working on multiple paths of the homepage as i frequently am.  I'd need to maintain a seperate app-config.php file for each subdirectory of files i would be working on.

I've committed a new version of app.class.php to Phoenix.eclipse.org CVS that would allow for a global app-config.php file to be placed beside app.class.php.  This file would be used when there is no app-config.php file in your current working directory.

I've attached a patch of this change to the bug so that you can easily see the changes i've made to the code.

I'm looking for someone to review the code and provide their +1 to make it live.
Comment 1 Karl Matthias CLA 2008-11-06 12:31:13 EST
+1
Comment 2 Nathan Gervais CLA 2008-11-26 15:28:15 EST
app.class.php v1.61 in phoenix cvs has this change included.
Comment 3 Nathan Gervais CLA 2008-11-28 11:39:38 EST
Added a section to Phoenix Documentation under the database section on how to use app-config.php

http://wiki.eclipse.org/Using_Phoenix#Setting_up_the_local_databases

Closing this bug out.