maxnuf / MaxnufSmarty

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

Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (MaxnufSmarty) could not be initialized.' #7

Closed Spiderschwein closed 11 years ago

Spiderschwein commented 11 years ago

Hey,

i've got some problems with this module. When i activate the module, zf always shows the following error:

Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (MaxnufSmarty) could not be initialized.'

Anybody a suggestion for me, how to solve the problem?

regards

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? basicaly any modules you'll place in 'vendor' or 'module' will be loaded. Or any other paths that you specify snippet from 'config/application.config.php':

    'module_listener_options' => array(
        'module_paths' => array(
            './module',
            './vendor',
        ),
    )
Spiderschwein commented 11 years ago

I'd problems with composer first, so installed in manually in the modules directory (copied it and added it to the application.config) and then i got allways this error.

So i tried to install a new skeletonApplication with your module with composer and everything is fine now.

Thanks for your work!