ZF2: Errors in Eclipse and zend library not found -


i able install zend skeleton framework zf2. reason getting errors in eclipse , app cannot find zend library classes.

enter image description here

i have in init_autoloader.php

    $zf2path = false; if (is_dir('vendor/zf2/library')) {     $zf2path = 'vendor/zf2/library'; } elseif (getenv('zf2_path')) {      // support zf2_path environment variable or git submodule     $zf2path = getenv('zf2_path'); } elseif (get_cfg_var('zf2_path')) { // support zf2_path directive value     $zf2path = get_cfg_var('zf2_path'); }  if ($zf2path) {     if (isset($loader)) {         $loader->add('zend', $zf2path);     } else {         include $zf2path . '/zend/loader/autoloaderfactory.php';         zend\loader\autoloaderfactory::factory(array(             'zend\loader\standardautoloader' => array(                 'autoregister_zf' => true             )         ));     } } 

i see 2 zendframework folders in vendor, zf2 empty , zendframework folder contains bin, demos, library, resources etc folder. library supposed reside. if yes why have zf2 empty folder?

enter image description here

two questions: 1. how app find library classes? 2. if want create google places api class. put , how make accessible module?

update: sam's comment, did little search , got post solved eclipse problem.

you have got eclipse setup php 5.1/2

window > preferences > php > php interpreter > php version > 5.3 

it magically recognise namespaces.

you can set on project project basis if prefer.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -