免費PHP的IDE--Aptana Studio 3安裝紀錄

1.執行安裝 Aptana_Studio_3_Setup_3.4.2.exe(下載網站http://www.aptana.com/products/studio3/download)
2.參攷說明詳見 http://fundesigner.net/aptana-install/
3.安裝 jQuery提示:參攷 http://dennis.joba.cc/blog/aptana-studio-%E4%BD%BF%E7%94%A8%E6%95%99%E5%AD%B8-%E4%B8%8B%E8%BC%89%E3%80%81%E4%B8%AD%E6%96%87%E5%8C%96%E3%80%81jquery%E6%8F%90%E7%A4%BA/
3.1.於 /Commands/Bundle Development/Install Bundle, 按 jQuery, 按 OK
4.執行安裝 AMPPS:Ampps-2.2-setup.exe(下載網站 http://www.ampps.com/downloads)
5.參攷 http://codeigniter2tutorial.blogspot.tw/2012/07/codeigniter-aptana-studio.html
5.1.安裝 Eclipse Git 外掛軟體
於 Help 選單下選擇 Install New Software...出現 Preference 對話框的 Available Software Sites 項目,勾選 Eclipse Indigo Update Site,然後按下 OK 按鈕
5.2.於 Install 對話框的 Available Software Sites
按一下 Work with 欄位後方的倒三角圖像,選擇 Eclipse Indigo Update Site,接下來 Aptana Studio 就會開始從網路上下載可以安裝的外掛軟體
5.3.在 Name 上方的空白欄位中輸入關鍵字 git 後,按下 Enter鍵,就會顯示所有相關的軟體
5.4.選擇安裝 Eclipse EGit,若未來有需要時,可以將程式碼存放於 Github
請在 Install 的對話框勾選 Eclipse EGit 後,按 Next 進入下一步,會出現 Install Detail
5.5.請按 Next 進入下一步的 Review Licenses 授權說明
必須先勾選右下方的 I accept the terms of the license agrement 項目,然後才能按右下方的 Finish 按鈕
5.6.設定 CodeIgniter 的自動完成功能
選單選擇 /Windows/Preference 項目,在側邊欄裡,找到 Aptana Studio > Editors > PHP 項目下的 Libraries,按一下右上角的 New user library
出現 Configure PHP Library 對話框後,按一下右方的 Add Folder
找到 /Applications/AMPPS/www/igniter 檔案夾後,按下 Open 按鈕
回到 Configure PHP Library 對話框後,需要為 Library 命名,在 Library name: 欄位輸入 CodeIgniter 2,然後按 OK
回到 PHP Libraries 對話框,按下 OK 完成設定
5.7.匯入 Ampps 的 CodeIgniter 安裝
按左方的 App Explorer 視窗的 Import Project
從 Import 對話框中,展開 General 檔案夾圖像,點一下 Existing Folder as New Project,然後按 Next 按鈕
出現 Promote Project 對話框,先按下 Browse... 按鈕找出 igniter 檔案夾所在位置
然後在 Open 對話框中,找到 /Applications/AMPPS/www 之下的 igniter 檔案夾,然後按下 Open
畫面會回到 Promote Project 對話框,Aptana Studio 會自動以 igniter 檔案夾名稱作為 Project name
記得勾選 Project Type: 下方的 PHP 屬性,讓 Aptana Studio 3 可以自動使用 PHP 相關功能,然後再按下 Finish 按鈕結束匯入
匯入完成,就可在 App Explorer 視窗看到專案名稱 igniter,以及其下的檔案與檔案夾資料
5.8.設定目前專案的 PHP Buildpath
選擇 Project 選單的 Properties 項目
在側邊欄的 PHP Buildpath 項目點一下,有方出現的 Libraries 標籤下,會出現目前已聯結的 CodeIgniter 2
請勾選 User project specific settings,然後按下 OK 結束設定
6.安裝 codeigniter 敏捷开发工具包(Aptana Bundle Addon):http://codeigniter.org.cn/forums/forum.php?mod=viewthread&action=printable&tid=14013
6.1.打开 Aptana命令行控制台(Terminal) Account@PC ~
$ cd ~/Aptana\ Rubles
$ git clone git://github.com/hicode/codeigniter.ruble.git
7.建立簡單範例:參攷 http://www.mrmu.com.tw/2009/10/07/codeigniter-%E5%BB%BA%E7%AB%8B%E7%B0%A1%E5%96%AE%E7%9A%84mvc%E6%9E%B6%E6%A7%8B%E7%AF%84%E4%BE%8B/
7.1.新增資料表 guestbook
--
-- 資料庫: `ci_sample`
--
-- --------------------------------------------------------
--
-- 資料表格式: `guestbook`
--

CREATE TABLE IF NOT EXISTS `guestbook` (
  `id` int(16) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `comment` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- 列出以下資料庫的數據: `guestbook`
--
8.完成收工#

留言