Posted by: Yell | 4 มีนาคม 2010

Smarty add-on for Eclipse

This procedure can be used for adding PHP Smarty support to Eclipse or Aptana Studio.

  1. Download lastest SmartyPDT package from
    • Be sure that the .TPL files are not associated with any content type (file type). In Eclipse, go to Window->Preferences->General->Content Types and under the Text section check HTML and PHP Content Type If you see that the .TPL is associated with anything, just delete those entries.
  2. Go to Help-> Install New Software
    • At the Work With section click on the Add… button. Give the new “Site” a name and click on Archive… and select the downloaded .ZIP archive with smartypdt. Go back to the Install New Software window and select the newly added “site”. If the “Group items by category” check-box is checked, uncheck it. Now you should be able to see 1 item in the software list named “Smarty Feature”
  3. Select the Smarty Feature, click Next> and from here afterwards it shouldn’t be a problem.
    • If you are prompted that this is an unsigned package, just ignore the warning and install it anyway.
  4. After the installation completes, restart Eclipse and it should be working.
  5. Define a default PHP executable of type ‘Zend Debugger’ (only if you install vanilla Eclipse PDT):
    • In Eclipse go to Window->Preferences->PHP->PHP Executables Click on the Add button. Enter a name for that executable definition, for example “PHP localhost”, complete the 2 fields which ask you for the PHP executable path (the PHP binary CLI executable) and php.ini path. Be sure that the PHP debugger is the Zend Debugger.


Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out /  เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out /  เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out /  เปลี่ยนแปลง )


Connecting to %s


%d bloggers like this: