Sublime Text 2 and ZF2 ... auto complete not works

ide, sublimetext2, zend-framework2

Solution

You might need to add the path to the ZF2 folder if they aren't in one of the project folders, or you could add a .codeintel/config file to your project root and add:

{
    "PHP": {
        "php": '/usr/bin/php',
        "phpExtraPaths": ['path/to/ZF2'],
        "phpConfigFile": 'php.ini'
    }
}

So make sure you have the paths set up correctly, and it should work. Also SublimeCodeIntels default mappings for autocomple is:

- Linux: shift+ctrl+space

- Mac: shift+super+space

- Windows: shift+ctrl+space

Problem

I installed sublime text 2 with all php dependencies. And also a package for code complete called sublimecodeintel. There is not zf2 supported auto code complete. For example, when I start writing ``` \Zend\Form\... ``` at each steps CTRL+Space does not give any subclasses of Form or for example after this: ``` $testimonial = new \Application\Entity\Testimonial(); ``` when I write this: ``` $testimonial-> ``` CTRL+Space shows a list but there is no methods listed from Testimonial php class. Please help.

Original source