Generator.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 Oct 2011 05:38:08 +0000 (13:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 Oct 2011 05:38:08 +0000 (13:38 +0800)
Generator.php

index 19c9d00..f284831 100644 (file)
@@ -360,7 +360,7 @@ touch Pman/????/DataObjects/".ucfirst($this->table).".php
            
            
             $outfilename    = $rd.'/'.$mod.'/'. ucfirst($this->table).'.php';
-            $orig           = $ff->page->rootDir .'/Pman/'.$mod.'/DataObjects/'. ucfirst($this->table).'.php';
+            $orig           = $ff->page->rootDir .'/Pman/'.$mod.'/DataObjects/'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));.'.php';
             
            
                 // file_get_contents???