This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » symfony projects » askeet » problem with day2 symfony propel-crud-generate frontend question Question
problem with day2 symfony propel-crud-generate frontend question Question [message #17997] Fri, 15 December 2006 18:04
dmthaker  is currently offline dmthaker
Messages: 3
Registered: December 2006
Junior Member
I got this error on generating crud

***********************************
[sfException]
Call to undefined method sfGenerator::getCrudColumnEditTag
stack trace

* at ()
in SF_SYMFONY_LIB_DIR/generator/sfGenerator.class.php line 129 ...
126. {
127. if (!$callable = sfMixer::getCallable('sfGenerator:'.$method))
128. {
129. throw new sfException(sprintf('Call to undefined method sfGenerator::%s', $method));
130. }
131.
132. array_unshift($arguments, $this);
* at sfGenerator->__call('getCrudColumnEditTag', array(object('ColumnMap')))
in n/a line n/a ...
* at sfPropelCrudGenerator->getCrudColumnEditTag(object('ColumnMap'))
in /usr/local/lib/php/data/symfony/generator/sfPropelCrud/defau lt/template/templates/editSuccess.php line 16 ...
13. <?php if ($name == 'CREATED_AT' || $name == 'UPDATED_AT') continue ?>
14. <tr>
15. <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?><?php if ($column->isNotNull()): ?>*<?php endif; ?>:</th>
16. <td>[?php echo <?php echo $this->getCrudColumnEditTag($column) ?> ?]</td>
17. </tr>
18. <?php endforeach; ?>
19. </tbody>
* at require('/usr/local/lib/php/data/symfony/generator/sfPropelC rud/default/template/templates/editSuccess.php')
in SF_SYMFONY_LIB_DIR/generator/sfGenerator.class.php line 60 ...
57.
58. // eval template file
59. ob_start();
60. require($templateFile);
61. $content = ob_get_clean();
62.
63. // replace [?php and ?]
* at sfGenerator->evalTemplate('templates/editSuccess.php')
in SF_SYMFONY_LIB_DIR/generator/sfGenerator.class.php line 47 ...
44. foreach ($templateFiles as $template)
45. {
46. // eval template file
47. $retval = $this->evalTemplate('templates/'.$template);
48.
49. // save template file
50. $this->getGeneratorManager()->getCache()->set($template, $generatedModuleName.DIRECTORY_SEPARATOR.'templates', $retval);
* at sfGenerator->generatePhpFiles('autoQuestion', array('listSuccess.php', 'editSuccess.php', 'showSuccess.php'))
in SF_SYMFONY_LIB_DIR/lib/generator/sfPropelCrudGenerator.class .php line 85 ...
82. }
83.
84. $this->setTheme($theme);
85. $this->generatePhpFiles($this->generatedModuleName, array('listSuccess.php', 'editSuccess.php', 'showSuccess.php'));
86.
87. // require generated action class
88. $data = "require_once(sfConfig::get('sf_module_cache_dir').'/".$this- >generatedModuleName."/actions/actions.class.php')\n";
* at sfPropelCrudGenerator->generate(array('model_class' => 'Question', 'theme' => 'default', 'moduleName' => 'question'))
in SF_SYMFONY_LIB_DIR/generator/sfGeneratorManager.class.php line 39 ...
36. {
37. $generator = new $generator_class();
38. $generator->initialize($this);
39. $data = $generator->generate($param);
40.
41. return $data;
42. }
* at sfGeneratorManager->generate('sfPropelCrudGenerator', array('model_class' => 'Question', 'theme' => 'default', 'moduleName' => 'question'))
in SF_SYMFONY_LIB_DIR/config/sfGeneratorConfigHandler.class.php line 72 ...
69. preg_match('#'.sfConfig::get('sf_app_module_dir_name').'/([^ /]+)/#', $configFiles[1], $match);
70. $generatorParam['moduleName'] = $match[1];
71.
72. $data = $generatorManager->generate($config['class'], $generatorParam);
73.
74. // compile data
75. $retval = "<?php\n".
* at sfGeneratorConfigHandler-> execute(array('/usr/local/lib/php/data/symfony/config/genera tor.yml', '/home/aum/dmtweb/askeet/apps/frontend/modules/question/conf ig/generator.yml'))
in SF_SYMFONY_LIB_DIR/config/sfConfigCache.class.php line 99 ...
96. if ($handlerToCall)
97. {
98. // call the handler and retrieve the cache data
99. $data = $handlerToCall->execute($configs);
100.
101. $this->writeCacheFile($handler, $cache, $data);
102. }
* at sfConfigCache->callHandler('modules/question/config/generator.yml', array('/usr/local/lib/php/data/symfony/config/generator.yml' , '/home/aum/dmtweb/askeet/apps/frontend/modules/question/conf ig/generator.yml'), '/home/aum/dmtweb/askeet/cache/frontend/dev/config/modules_q uestion_config_generator.yml.php')
in SF_SYMFONY_LIB_DIR/config/sfConfigCache.class.php line 196 ...
193. if (!is_readable($cache) || $mtime > filemtime($cache))
194. {
195. // configuration has changed so we need to reparse it
196. $this->callHandler($configPath, $files, $cache);
197.
198. // clear process cache
199. if ('config/config_handlers.yml' != $configPath)
* at sfConfigCache->checkConfig('modules/question/config/generator.yml', '1')
in SF_SYMFONY_LIB_DIR/config/sfConfigCache.class.php line 258 ...
255. */
256. public function import($config, $once = true, $optional = false)
257. {
258. $cache = $this->checkConfig($config, $optional);
259.
260. if ($optional && !$cache)
261. {
* at sfConfigCache->import('modules/question/config/generator.yml', '1', '1')
in SF_SYMFONY_LIB_DIR/controller/sfController.class.php line 198 ...
195. }
196.
197. // check for a module generator config file
198. sfConfigCache::getInstance()-> import(sfConfig::get('sf_app_module_dir_name').'/'.$moduleNa me.'/'.sfConfig::get('sf_app_module_config_dir_name').'/gene rator.yml', true, true);
199.
200. if (!$this->actionExists($moduleName, $actionName))
201. {
* at sfController->forward('question', 'index')
in SF_SYMFONY_LIB_DIR/controller/sfFrontWebController.class.php line 48 ...
45. $actionName = $request->getParameter('action');
46.
47. // make the first request
48. $this->forward($moduleName, $actionName);
49. }
50. catch (sfException $e)
51. {
* at sfFrontWebController->dispatch()
in SF_ROOT_DIR/web/frontend_dev.php line 10 ...
7.
8. require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTOR Y_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SE PARATOR.'config.php');
9.
10. sfContext::getInstance()->getController()->dispatch();
11.

****************************************

IF anybody can resolve the issue it would be a great help
Previous Topic:I got this error on DAY1 If somebody can help
Next Topic:problem Day 4 - error with propel-build-model
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software