顯示具有 yii 標籤的文章。 顯示所有文章
顯示具有 yii 標籤的文章。 顯示所有文章

2011年12月24日 星期六

Aptana + Yii 外加PHP Library

參考:PHP Development

2011年8月27日 星期六

Yii-1

  1. 前往MAMP網頁根目錄:
    cd /Applications/MAMP/htdocs
  2. 執行yiic腳本,產生 demo 網頁應用程式(不要用 sudo):
    ./yii//framework/yiic webapp demo
    Password:
    Create a Web application under '/Applications/MAMP/htdocs/demo'? [Yes|No] y
  3. 測試 demo :
    http://localhost/demo/index.php
  4. 執行 yiic shell , 要指定 config 檔案路徑:
    ./protected/yiic shell ./protected/config/main.php
  5. 產生 message 控制器與 helloWorld 函數:
    >> controller message helloWorld
  6. 測試 message 控制器與 helloWorld 函數:
    http://localhost/demo/index.php?r=message
    http://localhost/demo/index.php?r=message/helloWorld