Changeset 7329
- Timestamp:
- 02/04/08 14:51:18 (8 months ago)
- Files:
-
- branches/1.1/lib/controller/default/templates/moduleSuccess.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelGenerateCrudTask.class.php (modified) (2 diffs)
- branches/1.1/lib/task/generator/sfGenerateAppTask.class.php (modified) (1 diff)
- branches/1.1/lib/task/generator/sfGenerateModuleTask.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/controller/default/templates/moduleSuccess.php
r7293 r7329 15 15 <dd> 16 16 <ul class="sfTIconList"> 17 <li class="sfTDirectoryMessage">Browse to the <code>apps/<?php echo sfContext::getInstance()->getConfiguration()->getApplication()?>/modules/<?php echo $sf_params->get('module') ?>/</code> directory</li>17 <li class="sfTDirectoryMessage">Browse to the <code>apps/<?php echo SF_APP ?>/modules/<?php echo $sf_params->get('module') ?>/</code> directory</li> 18 18 <li class="sfTEditMessage">In <code>actions/actions.class.php</code>, edit the <code>executeIndex()</code> method and remove the final <code>forward</code></li> 19 19 <li class="sfTColorMessage">Customize the <code>templates/indexSuccess.php</code> template</li> branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelGenerateCrudTask.class.php
r7296 r7329 128 128 129 129 // create basic test 130 $this->filesystem->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_ root_dir').'/test/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php');130 $this->filesystem->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_test_dir').'/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 131 131 132 132 // customize test file 133 $this->filesystem->replaceTokens(sfConfig::get('sf_ root_dir').'/test/functional/'.$arguments['application'].DIRECTORY_SEPARATOR.$arguments['module'].'ActionsTest.php', '##', '##', $this->constants);133 $this->filesystem->replaceTokens(sfConfig::get('sf_test_dir').'/functional/'.$arguments['application'].DIRECTORY_SEPARATOR.$arguments['module'].'ActionsTest.php', '##', '##', $this->constants); 134 134 135 135 // delete temp files … … 154 154 155 155 // create basic test 156 $this->filesystem->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_ root_dir').'/test/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php');156 $this->filesystem->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_test_dir').'/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 157 157 158 158 // customize test file 159 $this->filesystem->replaceTokens(sfConfig::get('sf_ root_dir').'/test/functional/'.$arguments['application'].DIRECTORY_SEPARATOR.$arguments['module'].'ActionsTest.php', '##', '##', $this->constants);159 $this->filesystem->replaceTokens(sfConfig::get('sf_test_dir').'/functional/'.$arguments['application'].DIRECTORY_SEPARATOR.$arguments['module'].'ActionsTest.php', '##', '##', $this->constants); 160 160 161 161 // customize php and yml files branches/1.1/lib/task/generator/sfGenerateAppTask.class.php
r7296 r7329 108 108 109 109 // Create test dir 110 $this->filesystem->mkdirs(sfConfig::get('sf_ root_dir').'/test/functional/'.$app);110 $this->filesystem->mkdirs(sfConfig::get('sf_test_dir').'/functional/'.$app); 111 111 } 112 112 } branches/1.1/lib/task/generator/sfGenerateModuleTask.class.php
r7296 r7329 100 100 101 101 // create basic test 102 $this->filesystem->copy($skeletonDir.'/test/actionsTest.php', sfConfig::get('sf_ root_dir').'/test/functional/'.$app.'/'.$module.'ActionsTest.php');102 $this->filesystem->copy($skeletonDir.'/test/actionsTest.php', sfConfig::get('sf_test_dir').'/functional/'.$app.'/'.$module.'ActionsTest.php'); 103 103 104 104 // customize test file 105 $this->filesystem->replaceTokens(sfConfig::get('sf_ root_dir').'/test/functional/'.$app.DIRECTORY_SEPARATOR.$module.'ActionsTest.php', '##', '##', $constants);105 $this->filesystem->replaceTokens(sfConfig::get('sf_test_dir').'/functional/'.$app.DIRECTORY_SEPARATOR.$module.'ActionsTest.php', '##', '##', $constants); 106 106 107 107 // customize php and yml files