debussy007 wrote
> 
> But then how does the application find the library?
> In init_autoloader.php I have the following:
> 
> /if (getenv('ZF2_PATH')) {           // Support for ZF2_PATH environment
> variable or git submodule
>     $zf2Path = getenv('ZF2_PATH');
> } elseif (get_cfg_var('zf2_path')) { // Support for zf2_path directive
> value
>     $zf2Path = get_cfg_var('zf2_path');
> } *elseif (is_dir('vendor/ZF2/library')) {
>     $zf2Path = 'vendor/ZF2/library';
> }*/
> 

You have many options here to sort this out.
Firstly you can set your environment variable to point to the
vendor/zendframework/zendframework library folder.
Secondly you can edit last elseif statement above to reflect your
vendor/zendframework/zendframework lib.
You could also install SkeletonApp as git submodule then it will work out of
the box. It's all up to you really.

If you're after using ZF2 lbrary only without installing any 3rd parties you
could also use this:

require_once 'vendor/Zend/Loader/AutoloaderFactory.php';

Zend\Loader\AutoloaderFactory::factory(array(
    'Zend\Loader\StandardAutoloader' => array(
        'autoregister_zf' => true
    )
));

and copyZend folder directly inside the vendor, like: vendor/Zend



-----
Cheers,
--
Luke Mierzwa
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Getting-started-library-installed-in-zendframework-zendframework-vendor-ZF2-is-empty-dir-tp4656876p4656881.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to