Changeset 3513
- Timestamp:
- 02/19/07 14:42:16 (2 years ago)
- Files:
-
- branches/1.0/lib/generator/sfCrudGenerator.class.php (modified) (1 diff)
- branches/1.0/lib/generator/sfGenerator.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/generator/sfCrudGenerator.class.php
r3331 r3513 87 87 88 88 $this->setTheme($theme); 89 90 $templateFiles = array_merge( 91 sfFinder::type('file')->name('*.php')->relative()->in(sfLoader::getGeneratorTemplate($this->getGeneratorClass(), 'default', '').'/templates'), 92 sfFinder::type('file')->name('*.php')->relative()->in($themeDir.'/templates') 93 ); 94 95 $configFiles = array_merge( 96 sfFinder::type('file')->name('*.yml')->relative()->in(sfLoader::getGeneratorTemplate($this->getGeneratorClass(), 'default', '').'/config'), 97 sfFinder::type('file')->name('*.yml')->relative()->in($themeDir.'/config') 98 ); 89 $templateFiles = sfFinder::type('file')->name('*.php')->relative()->in($themeDir.'/templates'); 90 $configFiles = sfFinder::type('file')->name('*.yml')->relative()->in($themeDir.'/config'); 99 91 100 92 $this->generatePhpFiles($this->generatedModuleName, $templateFiles, $configFiles); branches/1.0/lib/generator/sfGenerator.class.php
r3302 r3513 69 69 $this->getGeneratorManager()->getCache()->set($template, $generatedModuleName.DIRECTORY_SEPARATOR.'templates', $retval); 70 70 } 71 71 72 72 // generate config files 73 73 foreach ($configFiles as $config)