http://articles.sitepoint.com/article/symfony-beginners-tuto rial
So far I have doen
- Generated the project created page
- created the schema.yml as instructed
- done symfony propel-build-all (worked perfectly no errors)
- Cleared cache
- done symfony propel-init-admin frontend photo Photo
When I view it on a browser I still get this error:
- Code: Select all
[sfInitializationException]
Unable to scaffold nonexistent model "Photo".
stack trace
* at ()
in SF_ROOT_DIR\lib\symfony\generator\sfCrudGenerator.class.php line 57 ...
54.
55. if (!class_exists($modelClass))
56. {
57. throw new sfInitializationException(sprintf('Unable to scaffold nonexistent model "%s".', $modelClass));
58. }
59.
60. $this->setScaffoldingClassName($modelClass);
* at sfCrudGenerator->generate(array('model_class' => 'Photo', 'theme' => 'default', 'moduleName' => 'photo'))
in SF_ROOT_DIR\lib\symfony\generator\sfGeneratorManager.class.php line 90 ...
87. {
88. $generator = new $generatorClass($this);
89.
90. return $generator->generate($param);
91. }
92. }
93.
* at sfGeneratorManager->generate('sfPropelAdminGenerator', array('model_class' => 'Photo', 'theme' => 'default', 'moduleName' => 'photo'))
in SF_ROOT_DIR\lib\symfony\config\sfGeneratorConfigHandler.class.php line 95 ...
92. EOF;
93. }
94.
95. $data .= $generatorManager->generate($class, $parameters);
96.
97. return $data;
98. }
* at sfGeneratorConfigHandler::getContent(object('sfGeneratorManager'), 'sfPropelAdminGenerator', array('model_class' => 'Photo', 'theme' => 'default', 'moduleName' => 'photo'))
in SF_ROOT_DIR\lib\symfony\config\sfGeneratorConfigHandler.class.php line 75 ...
72. $retval = "<?php ".
73. "// auto-generated by sfGeneratorConfigHandler ".
74. "// date: %s %s ";
75. $retval = sprintf($retval, date('Y/m/d H:i:s'), $this->getContent($generatorManager, $config['class'], $generatorParam));
76.
77. return $retval;
78. }
* at sfGeneratorConfigHandler->execute(array('C:\wamp\www\sf_sandbox\apps\frontend/modules/photo/config/generator.yml'))
in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 105 ...
102. }
103.
104. // call the handler and retrieve the cache data
105. $data = $this->getHandler($handlerKey)->execute($configs);
106.
107. $this->writeCacheFile($handler, $cache, $data);
108. }
* at sfConfigCache->callHandler('modules/photo/config/generator.yml', array('C:\wamp\www\sf_sandbox\apps\frontend/modules/photo/config/generator.yml'), 'C:\wamp\www\sf_sandbox\cache\frontend\dev\config/modules_photo_config_generator.yml.php')
in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 194 ...
191. if (!is_readable($cache) || $mtime > filemtime($cache))
192. {
193. // configuration has changed so we need to reparse it
194. $this->callHandler($configPath, $files, $cache);
195. }
196.
197. if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled'))
* at sfConfigCache->checkConfig('modules/photo/config/generator.yml', 1)
in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 246 ...
243. */
244. public function import($config, $once = true, $optional = false)
245. {
246. $cache = $this->checkConfig($config, $optional);
247.
248. if ($optional && !$cache)
249. {
* at sfConfigCache->import('modules/photo/config/generator.yml', , 1)
in SF_ROOT_DIR\lib\symfony\controller\sfController.class.php line 197 ...
194. }
195.
196. // check for a module generator config file
197. $this->context->getConfigCache()->import('modules/'.$moduleName.'/config/generator.yml', false, true);
198.
199. if (!$this->actionExists($moduleName, $actionName))
200. {
* at sfController->forward('photo', 'index')
in SF_ROOT_DIR\lib\symfony\controller\sfFrontWebController.class.php line 53 ...
50. }
51.
52. // make the first request
53. $this->forward($moduleName, $actionName);
54. }
55. catch (sfException $e)
56. {
* at sfFrontWebController->dispatch()
in SF_ROOT_DIR\lib\symfony\util\sfContext.class.php line 164 ...
161. */
162. public function dispatch()
163. {
164. $this->getController()->dispatch();
165. }
166.
167. /**
* at sfContext->dispatch()
in SF_ROOT_DIR\web\frontend_dev.php line 12 ...
I have searched and tried everything previously mentioned in the forums but with no luck. If you need any more information then please ask. Thank you.
