i am creating my first application in zf2. i followed Zend Offical website zf2 Skeleton Application.i have downloaded the skeleton app from github as in in the given link.when i extract it and put that in my folder and run it its showing this Fatal Error
Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load ZF2.
Run `php composer.phar install` or define a ZF2_PATH environment variable.' in
D:\projects\zf2\zf2_app\init_autoloader.php:50 Stack trace: #0 D:\projects\zf2\zf2_app
\public\index.php(9): require() #1 {main} thrown in D:\projects\zf2\zf2_app
\init_autoloader.php on line 50
i dont know How to fix this??
and what about this?
To install Zend Framework 2 into our application we simply type:
php composer.phar self-update
php composer.phar install
where to type these commands? Help me with my first ZF2 app
1.Enable LoadModule rewrite_module modules/mod_rewrite.so from your apache
2.Enable extension=php_openssl.dll from your php.ini
3.Install Composer from http://getcomposer.org/doc/00-intro.md#autoloading. There are instructions for both Linux and windows.
4.Download skeleton project from github.( https://github.com/zendframework/ZendSkeletonApplication and click the “Zip” button) to your htdocs.
5.Go to the directory where you have just downloaded the skeleton project.
6.Run php composer.phar install.This will download all the dependencies.
7.Go to http://framework.zend.com/manual/2.2/en/user-guide/skeleton-application.html and create a virtual host accordingly.
8.Go to c:\windows\system32\drivers\etc\hosts (Windows)or /etc/hosts(Linux) and add the following lines:
127.0.0.1 zf2-tutorial.localhost localhost
9.Go to http://zf2-tutorial.localhost/ and you should see the welcome page.