2014/06/24

smartyのインストールについて

○目的
 phtmlファイルをEclipse上で編集するため、smartyのエディタを利用する

○手順

1.下記サイトより、プラグインをダウンロード

   https://code.google.com/p/smartypdt/

  使用しているjdkのバージョンにより、モジュールが異なる。
   jdk6:smartypdt-0_9_0.zip
   jdk7:smartypdt-0_9_1.zip

2.ダウンロードしたzipファイルを解凍

3.解凍したファイルをEclipseの該当ディレクトリにコピー

  features、plugins内のファイルをそれぞれコピーする。

  例)smartypdt-0_9_1の場合
      \features\org.eclipse.php.smarty_feature_0.91.0.jar
       ↓
      [Eclipse Home]\features

      \plugins\org.eclipse.php.smarty.core_0.91.0.jar
      \plugins\org.eclipse.php.smarty.ui_0.91.0.jar
       ↓
      [Eclipse Home]\plugins

4.Eclipseをclean起動

  Eclipseのホームディレクトリにある下記ファイルでクリーン起動する。
   「eclipse.exe -clean.cmd」

5.ファイルの関連付け

  メニュー→ウィンドウ(W)→設定(P)
   →一般→エディタ→ファイルの関連付け



○その他

(確認環境)
Eclipse3.6(jdk1.6)

(参考にしたサイト)
http://www.s-arcana.co.jp/tech/2011/06/eclipse-36-pdt-22-php-smarty-smartypdt.html

0 件のコメント: