Why "generated" folder was ripped of "Current Development Version" ?

thread: 2 messages  |  last: about 3 years ago  |  started: thursday, march 27, 2008, 4:18 am pdt


#1  |  rsantos (Rio de Janeiro, RJ) Brazil
Thursday, March 27, 2008, 4:18 AM PDT

Sorry, but this was a stupid idea, unless there is an amazing explanation.

The idea of a folder that had the objective of only keep the generated code and a folder for the customization helped a lot in software maintenance and evolution.

Every new feature, business rule or correction in the database would generate the differences in the “generated” folder and I would only need to copy the differences to my customized files.

What is happening now? I customize my files and code generation rewrite them. Where am I going to keep know my customized files so that they wont be affected by code generation?

Why was this brilliant idea ripped of “Current Development Version” ?

#2  |  Gert van de Venis (zutphen, Netherlands) Netherlands (Holland, Europe)
Thursday, March 27, 2008, 11:41 AM PDT

I have no clue of what you're talking about! AFAIKT nothing changed in this matter...

[EDIT]:

Actually i Do see your point now. Try changing these lines in the configuration.inc.php file:

...
// Destination for generated form drafts and panel drafts
define ('__FORM_DRAFTS__', _SUBDIRECTORY_ . '/drafts');
define ('__PANEL_DRAFTS__', _SUBDIRECTORY_ . '/drafts/dashboard');
...

To:

...
// Destination for generated form drafts and panel drafts
define ('__FORM_DRAFTS__', _SUBDIRECTORY_ . '/drafts/generated');
define ('__PANEL_DRAFTS__', _SUBDIRECTORY_ . '/drafts/dashboard/generated');
...


Then Re-CodGen, copy out what you need (as before ?) and note your changes remain untouched after successive code generations...

PS: Haven't actually tried this yet...



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.