Jump to content

Archived

This topic is now archived and is closed to further replies.

Yohanne

Unable to load ZF2.

Recommended Posts

Hi all.

 

this is my first time in ZF and i have no any idea if how to fix it .. could you please assist and help me how to fix this problem. im using local server the wamp. and i got the following.

-

 

Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.' in C:\wamp\www\zendy\init_autoloader.php on line 48

 

RuntimeException: Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable. in C:\wamp\www\zendy\init_autoloader.php on line 48

 

 

 

Share this post


Link to post
Share on other sites

i used latest version of zendFwork and skeleton app from gethub

Share this post


Link to post
Share on other sites

You need composer

 

Then run:

$ php composer.phar install
If that doesn't work then find out where in C:\wamp your php.exe resides copy the path and run it like:

$ C:\wamp\php\bin\php.exe composer.phar install

Share this post


Link to post
Share on other sites

okay. but i already installed the composer through thre app. and i installed the composer through this path c:/wamp/bin/php/php5.3.8/php.exe, and i don't know if it is correct, please help 

Share this post


Link to post
Share on other sites

but somehow i try as you said above. like this

C:\wamp\bin\php\php5.3.8\php.exe composer.phar install

and i get this: Could not open input file:composer.install

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.