推 kusoayan:讓 M 跟 DB 撈資,C 把資料傳到 V,讓 V 把資料顯示出來 05/24 11:30
→ olctw:一般是在 C 判斷,但是因為數量太多,大多還是搬到 V ,頂多 05/24 11:46
→ olctw:寫成可重複運用的 element 05/24 11:46
推 Fantasywind:想問一下大家format to html 都做在c還是m? 05/24 21:41
→ MOONRAKER:Format to HTML應該在view吧 了不起偷懶寫在controller 05/24 21:59
→ MOONRAKER:寫在controller已經讓前端人員裡外不是人 寫在model... 05/24 22:01
→ MOONRAKER:會不會太誇張了?還是你說的format和我想的不一樣? 05/24 22:01
推 Fantasywind:render table 這種 還是說都用js作? 05/25 02:25
推 Fantasywind:or 變換語句的php? 05/25 02:39
→ superpai:DB只有Model能碰,V只能顯示這規則有這麼難嗎? 05/25 08:11
→ superpai:你用django的話V(template)甚至只有他准你用的語法能用 05/25 08:12
→ superpai:在V上不能寫python 05/25 08:12