→ hom1130:一樣傳參數呼叫function 06/01 13:36
→ banjmin:mvc restful controller 06/01 13:36
→ banjmin:就可以一個php 做很多事情 06/01 13:37
意思是說 android 都固定連到同一個 php
只是 android 會再帶一個key
php 用那個key 去判斷 要執行哪個class 哪個function 嗎?
這的確也可以
雖然不像 flash 那麼方便 XD
※ 編輯: yhn0tgb60 (122.116.254.70), 06/01/2014 14:13:34
→ banjmin:基本上restful controller 你整個CRUD都可以在同一個php內 06/01 14:16
→ banjmin:當然你get post put delete要帶參數都可以 06/01 14:16
→ banjmin:網址有些微差異而已 但都是對到同一個controller php檔 06/01 14:17
→ banjmin:因為mvc通常還可以設定網址routing 所以不會像model 1那樣 06/01 14:18
→ banjmin:一個網址對一個php 06/01 14:18
→ banjmin:你現在是寫Android 你還是忘掉flash是什麼比較好 06/01 14:21
推 banjmin:還有你的IP不是實體IP Android是連不到的 06/01 14:30
→ Darkland:手機跟 server 在同一個區網內就沒差吧,這應該是測試環 06/01 15:12
→ Darkland:境而已 06/01 15:12
恩 這只是測試環境
真的要上線時 會去外面租個server來用
※ 編輯: yhn0tgb60 (122.116.254.70), 06/01/2014 16:33:50