Edmonton Web Design and Photography

PHP Frameworks – Intellisense for Aptana


Posted in: Tutorials on June 6th, 2009

This will be something that will knock your socks off!

Aptana has what is called Intellisense, this is nothing new. Many modern IDE’s have Intellisense for standard HTML, XML, CSS, JavaScript, and other languages like PHP, and Ruby.

Setting up a Library Location

This will be a place where you can store your various frameworks. I store the frameworks in there own folders separate from the production scripts for Three reasons. One, I can keep versions of my library’s. And Two so they are independent of the production application. And Three I can update all the Frameworks with SVN.

  • PHP Librarys
    • Cake PHP
    • CodeIgniter
    • ZendFramework
    • Symfony
    • Flourish

Configuring Aptana

I am using Aptana Studio, build: 1.5.0.025215 at the time of writing this tutorial but from the previous versions I have used the steps remain the same.

Open Aptana Studio (or Eclipse with your Aptana plug-in)

Open Aptana/Eclipse Preferences

2009-06-06_1258

Select PHP Libraries
Press “New User Library” button

2009-06-06_1257

Name your library, IE: Flourish

Press the Add Folder button
Select the folder where the framework libraries are located
Hit Choose, Then OK, and Ok once more.

Now under PHP Elements View you can see all the Classes, Constants, Functions, and Variables with that Library.

2009-06-06_1316

Start typing names of Flourish classes, or even ZendFrame Work and they will begin to show up. You can even view the PHPDoc info when you click on a class or function.

I hope this is something you find useful because I didn’t know it even existed!

Enjoy!

Previous:
Next:

2 Responses to “ PHP Frameworks – Intellisense for Aptana ”


  1. Hi
    I can’t seem to get this working for CodeIgniter 1.7.2, can you provide detailed instructions?

    Thanks!

    Hutch
    February 15, 2010

  2. I have not used CodeIgniter, But I do have the code in my Library folder. I have even used WordPress. This will only work with Aptana 1.5 and its version of the PHP IDE, it will not work with the Eclipse PDT.

    One more reason why I don’t like Aptana 2.0

    Adam Patterson
    February 18, 2010

Search


Archive


Subscribe