Yes, I am using subversion as revision control system. Unfortunately, that day I had a problem with svn that dit not let me to commit changes. The next day, I fixed it but the overwrite occurred within the broken time of svn.
By the way, do not misunderstand me. It was my mistake. I wrote the controller file for the default module. And I was trying to create one more for the admin module. And since istead of zf create controller name index-action-included[=1] module I wrote: zf create controller name module, It overwrote the controller in the default module. But whatever, I would appreciate the zf tool prompted me :S A known but still interesting thing: I wrote that deleted controller codes in about 8 hours whereas I re-wrote a better and an optimized one in about 3-4 hours :) scs On Fri, Mar 26, 2010 at 5:31 PM, Hector Virgen <[email protected]> wrote: > Sorry to hear that, but are not using version control? > > -- > Hector > > > On Fri, Mar 26, 2010 at 1:43 AM, scs <[email protected]> wrote: >> >> Unfortunately that mistake caused a one day work loss :( >> >> On Thu, Mar 25, 2010 at 11:42 PM, Harley Laue >> <[email protected]> wrote: >> > scs wrote: >> >> Hello, >> >> Does zf tool overwrite existing files? >> >> For example, we do have a SampleController.php under controllers. >> >> And if by mistake, we wrote the command: zf create controller Sample, >> >> does it overwrite the existing SampleController.php? >> >> >> >> If yes, why?? >> > >> > It does appear to overwrite the file. >> > >> > ZendFramework-1.9.5/library/Zend/Tool/Project/Context/Filesystem/File.php >> > line 83: // @todo propt user to determine if its ok to overwrite file >> > So it looks like it's a planed to *prompt* the user if it's going to >> > overwrite anything. >> > > >
