Kamis, 05 Juli 2012

Cara Mengatasi Error Zend Framework 2 ZF2_PATH environment variable

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:\xampp\htdocs\zend2\public\index.php:28 Stack trace: #0 {main} thrown in C:\xampp\htdocs\zend2\public\index.php on line 28

Klick pada .htacces folder public, nah tambahin kode ini di file .htacces

SetEnv ZF2_PATH ../ZendFramework2/library 

cimiew :D

1 komentar:

  1. kalo error-ny spt ini ???
    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:\xampp\htdocs\xx\init_autoloader.php:48 Stack trace: #0 C:\xampp\htdocs\xx\public\index.php(9): include() #1 {main} thrown in C:\xampp\htdocs\xx\init_autoloader.php on line 48

    BalasHapus