Coder Social home page Coder Social logo

locms's Introduction

这是我自己写的框架 借鉴CI和discuss

#目录说明
1.core文件夹里的类 是缺一不可的 少了任何一个 程序都是无法运行的
2.extend文件夹里的类 程序少了这些类仍可以运行 , 写的扩展或者外部的库都放入该文件夹里
3.function里存放核心函数和一些通用的函数

#关于添加数据表
1.复杂的建表请直接用数据库工具,这里只为简单的建表提供常用的功能 提高开发效率.
2.这里的数据表,不支持索引,不支持主键修改,不支持表名更改.
3.建立数据表的步骤:
    a.新建数据表,在附加选项中,将自动表单设为可用.
    b.新建数据表对应的控制器和模型文件,并使你的控制器继承AutoController类并在你的控制器的构造方法中实例化你的模型
      $this -> model = new 你的模型(); 然后将你的模型继承AutoModel类,这样便完成了,如果你需要权限控制,一并在控制器构造中完成
    c.在模板目录中的menu.html中添加你的导航节点,并指向你新建的控制器.
    d.在core文件夹中,permission_values类中添加你的导航权限.
    e.配置用户权限,使你的用户能够操作这个模块.

locms's People

Contributors

lost1987 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.