Total Pageviews

Thursday 14 July 2016

一个轻量级的php框架-KindPHP


KindPHP is a lightweight PHP framework.
Features
  • Simple and quick.
  • Includes Frontend framework.
  • No cache files or configure files.
URL Routing
URL: http://www.app.com/100
Mapping: IndexController->index(100)

URL: http://www.app.com/member/100/2
Mapping: MemberController->index(100, 2)

URL: http://www.app.com/member/edit/100
Mapping: MemberController->edit(100)

URL: http://www.app.com/post/view/recent/2001
Mapping: PostController->view('recent', 2001)
Directory Structure
lib/
    KindPHP.php
app/
    controller/
        index.php
        member.php
        post.php
    view/
        index/
            index.view.php
        post/
            index.view.php
            view.view.php
        member/
            index.view.php
            edit.view.php
    module/
        common.php
        member.module.php
        post.module.php
    .htaccess
    index.php
static/
    bootstrap/
        css/
        img/
        js/
    jquery/
        jquery.min.js
    seajs/
        seajs.js
    app/
        css/
        img/

        js/

from https://github.com/kindsoft/kindphp