Answer the question
In order to leave comments, you need to log in
How to correctly specify the path to the Zend Framework library?
I decided to start learning Zend Framework. Immediately after installing the skeleton, I get the following message:
Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.' in /Users/velkomb/Sites/zend/init_autoloader.php:51 Stack trace: #0 /Users/velkomb/Sites/zend/public/index.php(18): require() #1 {main} thrown in /Users /velkomb/Sites/zend/init_autoloader.php on line 51
Answer the question
In order to leave comments, you need to log in
Unable to load ZF2. Run ` php composer.phar install ` or define a ZF2_PATH environment variable.
Can't read at all?
Luckily I figured it out. I had to clear the composer cache first: rm -rf ~/.composer/cache/* , and then just run php composer.phar update .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question