noFrame輕量級php開發架構

來源:互聯網
上載者:User
# noFrame
-----------------------------------


noFrame 定義了一套高效的、規範的、輕量級的php開發規範。


noFrame 使用entrance.php代替index.php作為應用的單一入口檔案。同時entrance.php作為noFrame的唯一檔案,您可以更改為您喜歡的名字。


noFrame 提供了兩種路由模式,path_info模式和相容模式。path_info需要伺服器環境的支援,而相容模式相容所有支援$_GET的伺服器環境。


noFrame path_info模式:$webRoot/Controller/User/login映射為$webRoot/Controller/User.class.php檔案的類User的public方法login。


noFrame 相容模式::$webRoot?Controller/User/login映射為$webRoot/Controller/User.class.php檔案的類User的public方法login。


# why noFrame
--------------------------------------


noFrame 不依賴任何拓展模組和伺服器環境配置。低耦合


noFrame 用規範代替架構。低效能開銷


noFrame 使用時只需拷貝entrance.php到您的應用的根目錄。低使用成本


noFrame 可以快速開發出一套規範的、簡潔的應用系統。


# use specification
------------------------------------------


noFrame 基於PSR-0規範


noFrame 類所在的檔案夾名首字母大寫


noFrame 返回的資料為json格式的字串


noFrame 返回的資料包含處理結果是否成功資訊

--------------------------------------------

noFrame現已託管至github。

託管地址:https://github.com/yii153/noFrame

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.