Changeset 6156
- Timestamp:
- 11/24/07 16:04:20 (11 months ago)
- Files:
-
- trunk/lib/generator/sfGenerator.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/generator/sfGenerator.class.php
r5043 r6156 60 60 * @param string The name of module name to generate 61 61 * @param array A list of template files to generate 62 * @param array A list of configuration files to generate63 62 */ 64 63 protected function generatePhpFiles($generatedModuleName, $files = array()) … … 87 86 88 87 // replace [?php and ?] 89 $content = $this->replacePhpMarks($content); 90 91 $retval = "<?php\n". 92 "// auto-generated by ".$this->getGeneratorClass()."\n". 93 "// date: %s\n?>\n%s"; 94 $retval = sprintf($retval, date('Y/m/d H:i:s'), $content); 95 96 return $retval; 88 return $this->replacePhpMarks($content); 97 89 } 98 90