N
N
Nikolai Kozlov2015-06-16 11:02:18
Zend Framework
Nikolai Kozlov, 2015-06-16 11:02:18

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

Tried to write include_path in php as suggested, nothing helps.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D', 2015-06-16
@Denormalization

Unable to load ZF2. Run ` php composer.phar install ` or define a ZF2_PATH environment variable.
Can't read at all?

N
Nikolai Kozlov, 2015-06-16
@Greatschemer

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 question

Ask a Question

731 491 924 answers to any question