Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Yii Basic Talk

Yii Basic Talk

Yii - A powerful PHP framework , this presentation is about how to use the framework to build a simple website :)

Aaron Huang

May 17, 2012
Tweet

More Decks by Aaron Huang

Other Decks in Programming

Transcript

  1. About Aaron • a.k.a aar0ntw • Nexdoor Web Developer •

    Development , System Design , Training ...etc • PHP , JavaScript , Ruby , Python ...etc • github, twitter : @aar0ntw • plurk : @smoraa • Blog: http://blog.buginception.com
  2. Agenda • Yii php framework tutorial • Intro • MVC

    pattern • Http request life cycle in yii • Folder Structure • Tools • live demo • Q & A
  3. Yii 是什麼 • 是⼀一個 PHP 的 web framework • 是⼀一個

    MVC 架構的 php framework • 是⼀一個快速開發的 php framework
  4. Yii 是什麼 • 是⼀一個 PHP 的 web framework • 是⼀一個

    MVC 架構的 php framework • 是⼀一個快速開發的 php framework • 是⼀一個⾼高效率的 php framework
  5. 為什麼要⽤用 framework • 因為 PHP 很劣 • 寫起來很醜 • 看起來很散

    • 跑起來很怪 • 因為很多⼈人都說會寫 PHP
  6. 為什麼要⽤用 framework • 因為 PHP 很劣 • 寫起來很醜 • 看起來很散

    • 跑起來很怪 • 因為很多⼈人都說會寫 PHP • 但實際上不太會寫。
  7. 為什麼要⽤用 framework • 因為 PHP 很劣 • 寫起來很醜 • 看起來很散

    • 跑起來很怪 • 因為很多⼈人都說會寫 PHP • 但實際上不太會寫。 • 上⾯面說的都是對的
  8. MVC 模式 • Model - View - Controller • 資料

    - 畫⾯面 - 中介控制 • 商業邏輯 - 前端畫⾯面 - 流程控管
  9. 輔助⼯工具 : CLI tool • yiic shell • model •

    controller • crud • yiic migrate