maxnuf / MaxnufSmarty

Zend Framework 2 Module that provides a Smarty rendering strategy
3 stars 3 forks source link

Excuse me for my mistake is how to return a responsibility!!!!!!!! #6

Closed zkjonline closed 11 years ago

zkjonline commented 11 years ago

Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (MaxnufSmarty) could not be initialized.' in /users/administrator/htdocs/zf2/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:144 Stack trace: #0 /users/administrator/htdocs/zf2/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php(85): Zend\ModuleManager\ModuleManager->loadModule('MaxnufSmarty') #1 [internal function]: Zend\ModuleManager\ModuleManager->onLoadModules(Object(Zend\ModuleManager\ModuleEvent)) #2 /users/administrator/htdocs/zf2/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(464): call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent)) #3 /users/administrator/htdocs/zf2/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('loadModules', Object(Zend\ModuleManager\ModuleEvent), NULL) #4 /users/admin in /users/administrator/htdocs/zf2/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php on line 144

maxnuf commented 11 years ago

well, as the module can not be initialized, I think it has not been autoloaded yet. are you using composer? it will generate an autoload file for you.

are you also using the ZendSkeletonApplication?

zkjonline commented 11 years ago

'modules' => array( 'Application', 'MaxnufSmarty', ), Just add MaxnufSmarty template error above.