zend framework2 - ZEND2 project not working after cloned to separate machine -


i have cloned office colleague's zend2 project our server. used zfcuser, zfcbase, , zfcadmin. when tried run project in local machine giving

<b>fatal error</b>:  uncaught exception 'zend\modulemanager\exception\runtimeexception' message 'module (zfcbase) not initialized.' in c:\xampp\htdocs\coolshop \vendor\zf2\library\zend\modulemanager\modulemanager.php:140 

everything fine me same project 100% working in colleague's machine. tried composer well. no luck

this result of loading zfcbase module git submodule. if fix module you'll receive same error other modules or dependencies you're using in manner. i've encountered problem when tries clone project on new machine or delete project locally , try re-clone it.

the simple answer here use composer dependency manager, you'll have better day. head on zfcbase on packagist , copy require statement composer.json file (you'll need run composer script after saving .json file). modules should have instructions on using composer grab them in readme. should note if you're using other modules depend on zfcbase, you'll need have require statement those, , not dependencies (like zfcbase).

someone had a similar question regarding zfcuser module. using composer solved issue.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -