- 由終端機換到CodeIgniter安裝目錄,這裡名稱為 CodeIgniter_2
- 執行MAMP的PHP指令
- 終端機顯示下載Sparks的訊息:
- CodeIgniter安裝目錄下會出現 tools 檔案夾。
- 接下來安裝ActiveRecod套件:
- 終端機顯示下載ActiveRecod的訊息:
- CodeIgniter的安裝目錄下會出現 sparks 檔案夾,其中出現 php-activerecord 檔案夾。在 application/core 檔案夾內也會出現 My_loader.php 檔案
cd /Applications/MAMP/htdocs/CodeIgniter_2
/Applications/MAMP/bin/php/php5.3.6/bin/php -r "$(curl -fsSL http://getsparks.org/go-sparks)"
Pulling down spark manager from http://getsparks.org/static/install/spark-manager-0.0.9.zip ... Pulling down Loader class core extension from http://getsparks.org/static/install/MY_Loader.php.txt ... Extracting zip package ... Cleaning up ... Spark Manager has been installed successfully! Try: `php tools/spark help`
/Applications/MAMP/bin/php/php5.3.6/bin/php tools/spark install php-activerecord
[ SPARK ] Retrieving spark detail from getsparks.org [ SPARK ] From Downtown! Retrieving spark from Git repository at git://github.com/machuga/php-activerecord-spark.git remote: Counting objects: 217, done. remote: Compressing objects: 100% (169/169), done. remote: Total 217 (delta 48), reused 191 (delta 25) Receiving objects: 100% (217/217), 127.24 KiB | 58 KiB/s, done. Resolving deltas: 100% (48/48), done. Switched to a new branch 'spark-63-1336902146' [ SPARK ] Spark installed to ./sparks/php-activerecord/0.0.2 - You're on fire!
沒有留言:
張貼留言