ActiveState Community

PHP API Catalogs

Posted by Ciwan on 2009-10-25 09:47
OS: Windows

Hello Everyone.

Before I being, I just want to say Thank You to all those that worked on Komodo Edit, it is brilliant.

I am using Windows 7 Ultimate 32bit. and Komodo Edit, version 5.2.1, build 4108.

As I type PHP, I would like an autocomplete feature to be present. For that I think I would need a PHP API Catalog under Edit > Preferences > Code Intelligence > API Catalogs.

In there I have many things listed .. one was ticked .. but I unticked it since it was for python, and I won't be using python.

But PHP is not even listed in there !!

Can someone please help me get the Code Intelligence for PHP.

Thank You.

jeffg | Sun, 2009-10-25 11:44

There is a built-in api catalog for PHP that is always active, and that provides autocomplete for any function defined in PHP itself. A good test of whether this is working is to open a .php file and type in:

<?php

array

?>

<?php

array

?>

At this point you should get a list of functions starting with 'array'. Does this work?

--
JeffG
http://www.openkomodo.com/blogs/jeffg

toddw | Mon, 2009-10-26 11:04

You need a locally installed PHP executable on your Windows machine before the code completions will work. Set the "Languages->PHP->PHP Interpreter" preference in Komodo to point to your PHP installation and everything should start working.

Cheers,
Todd

Ciwan | Mon, 2009-10-26 17:04

I have installed the latest version of WAMP on my PC.

Could you tell me where I would point Komodo to :( Sorry about this, I'm a n00b. :(

toddw | Tue, 2009-10-27 10:15

You'll need to point Komodo to the "php.exe" inside of the WAMP installation folder (I'm not exactly sure where that is since I don't use WAMP myself), probably something like the following:
C:\wamp\php\php.exe

Cheers,
Todd