Closed zkjonline closed 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?
'modules' => array( 'Application', 'MaxnufSmarty', ), Just add MaxnufSmarty template error above.
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