od2dev

Olivier De Waele – WebDev freelance
  • rss
  • Home
  • Bulletinscolaire.be : Bulluc
  • Dehollander.net
  • Links
  • Contact
  • About

From Notepad2 to Aptana, IDE for PHP Dev

OD | 12 August 2010

This time I’ve found it!

I used to script with notepad2, which features a basic color syntaxing and line numbering, but not more!

Aptana, IDE for Web development

I’ve looked for PHP IDEs (Integrated Development Environment) for a while but had never made a choice. This time, I’m ready to move to the one I’ve tested : It’s called Aptana, an open source solution to build web applications.

Based on Eclipse, you’ll find Aptana downloads for Windows, MacOS and Linux. I’ve tested Linux and Windows 64bits versions.

Aptana offers many plugins for developement. I’ll stick to PHP development.

Some may find it too resource-hungry but it works fine on Core i7 2.67 GHz with 4Go Ram memory with Opensuse 11.2, and is a bit less efficient on Asus EEEPC N10 (Atom N270 (1.6 GHz) with 2Go Ram memory). Aptana seems to be working quickly on MacBookPro Core2 Duo (4Go Ram).

Since Aptana 2.0, things seem to have become a bit less easier for PHP Web developers. Indeed, Aptana developers have decided to implement the Eclipse PDT plugin (PHP Development Tools project) to replace the Aptana PHP plugin that was used with older Aptana 1.5. The problem is the Aptana PHP plugin is much better than the PDT, as stated on bram.us.

Download and install Aptana

First download Aptana. I’ve chosen the standalone version. Once installed, go to Menu Help / Install new software and add a new source (http://update.aptana.com/install/php) and follow the wizard to install Aptana PHP 1.1 Developement Environment.

Configure Aptana and PHP plugin

Menu Window / Showview will open different kinds windows : file manager, properties,…

Menu Window / Preferences / General lets you choose between single or double click to open a file.

Menu Window / Preferences / General / Editors / File Associations should display *.php files associated with Aptana PHP Editor set as default.

Menu Window / Preferences / General / Editors / Text Editors lets you display line numbers.

Aptana create new project

In order to create a new project, display the Menu Window / Showview / File and right-click on “Projects” to display the context menu. Then Choose New / Project / Web / PHP Project. You’ll be asked a Project name and the source directory.

Aptana PHP

What is most powerful when you compare a simple editor as Notepad2 with Aptana is:

  • it provides real-time code validation
  • code Assist
  • Code preview…
  • Switching workspace

Then you may want to switch workspace and have your Apatana projects stored on another partition than the default C: partition. So, select Menu File / Switch Workspace / Other… and select your workspace partition…

Displaying .htaccess files

By default, .htaccess files won’t show in the File View. In order to be able to view them and modify them, click on the dropdown arrow of the File View then select “Customize View” and untick the .* files option :

View .htaccess files in AptanaView .htaccess files in Aptana

Prevent Aptana from creating index.php file

When you create a new project with Aptana configured the way it is above, it attempts to create an index.php file to display the phpinfo();

If you want to get rid of this, simply open Menu Window / Preferences / Aptana / Editors / PHP and untick “create project file in new PHP Project”.

Webliography :

Aptana Studio 2

Install Aptana PHP rather than the Eclipse PDT plugin

Categories
PHP5
Tags
aptana, notepad++, PHP IDEs, php plugin
Comments rss
Comments rss
Trackback
Trackback

« JQuery to show or hide form fields SEO keyword tools »

One Response to “From Notepad2 to Aptana, IDE for PHP Dev ”

  1. Surfanna says:
    14 September 2010 at 15:10

    Merci pour cet article, très utile ! ça fait pas mal de temps que je galère pour contourner les erreurs d’installation du plugin PHP sur mon Aptana, c’est chose faite maintenant. :-)
    Et la coloration syntaxique fonctionne, victoire ! C’était le plus important pour moi.

Leave a Reply

Click here to cancel reply.

Search

Choose a language

  • English English
  • Français

Categories

  • C-S scripting (3)
    • javascript (1)
    • JQuery (3)
  • Codeigniter (3)
  • Hardware (2)
  • OS & Software (9)
  • Server-side Scripting (21)
    • MySql5 (6)
    • Open Source (4)
    • PHP5 (13)
    • SEO (4)
  • Welcome (2)
  • Wordpress (1)
  • Zend framework (1)

Tags

authentication backups bluefish boolean search browsers cd Codeigniter domain names dvd efficiency f5 form fulltext search google alternatives google analytics hd insert into iron browser jquery linux mysql MySql5 mysql queries nas notepad++ notepad2 nvidia driver on duplicate key update OpenSuse os os protection PHP5 php editors phpmyadmin quanta plus rev SEO static variable statistics submit testing twinview web analytics Windows7 ZMWS

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Contents

  • Bulletinscolaire.be : Bulluc
  • Dehollander.net
  • Links
  • Contact
  • About

Archives

  • November 2011 (1)
  • October 2011 (1)
  • March 2011 (1)
  • December 2010 (2)
  • September 2010 (1)
  • August 2010 (1)
  • April 2010 (5)
  • March 2010 (3)
  • February 2010 (6)
  • January 2010 (5)
  • December 2009 (10)
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox