Coder Social home page Coder Social logo

skygreen2001 / betterlife.zero Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 52.45 MB

cms framework

Home Page: http://blog.csdn.net/skygreen_2001

PHP 60.31% JavaScript 33.62% CSS 1.39% HTML 3.68% Smarty 0.65% XSLT 0.11% Lex 0.09% Hack 0.01% Classic ASP 0.12% ASP.NET 0.03%

betterlife.zero's Introduction

betterlife

最新代码已经移植到 betterlife 2

符合**开发者思维方式的快速开发的框架,设计初衷快捷、简单、实用。

它包括一套实用的通用模版、后台管理模版、手机模版,并根据项目的需要,按照数据库的设计一键生成定制化的代码框架。

安装说明

* **安装NodeJs**
    下载地址: https://nodejs.org/en/download/
* **通过Github官网下载**
    官网地址: https://github.com/skygreen2001/betterlife.zero
    * git clone https://github.com/skygreen2001/betterlife.zero.git
    * git clone [email protected]:skygreen2001/betterlife.zero.git
* **安装Gulp**
  npm install --global gulp
* **安装目录下运行**
  npm install
  [说明]:安装目录是根目录下的install目录, 即本说明文件目录下
* **安装目录下运行**
  gulp

框架目录定义

* core    : 框架核心支持文件
* install : 安装目录
* library : 通用功能模块
* module  : 通用应用模块,如通信,条形码等
* taglib  : 自定义标签,您也可以在自己的应用中定义自定义标签
* tools   : 开发中通常用到的小工具【需发布在应用中访问url路径使用】
* home    : 基于MVC模式网站开发实际工作目录
* document: 框架帮助说明文档
* misc    : 引用第三方Js、Css、Image、Fonts资源目录

参考资料

入门级网站:

* 网站建设教程:http://www.w3school.com.cn/
* 新手开发手册:http://www.tizag.com/

参考框架:

Book

* Object-oriented programming with php5 [author:Hasin Hayder]

代码规范[Code Guide]

* PHP-fig:http://www.php-fig.org/
* PHP The right way:http://www.phptherightway.com/#code_style_guide
* 代码风格指南: https://laravel-china.github.io/php-the-right-way/#code_style_guide
* Drupal Code Standard:https://www.drupal.org/docs/develop/standards
* PHP Coding Guidelines & Best Practices:http://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartV/CodingGuideLines/PHP.html
* Tencent AlloyTeam:http://alloyteam.github.io/CodeGuide/

推荐工具

* 部署:XAMMP(Wamp/Lamp/Mamp) | XAMPP
* IDE:Atom | Sublime | Brackets | VS Code

在线资源

* Github Tools: https://github.com/integrations
* codemirror  : http://codemirror.net/

FAQ

  • 一般来讲:中文字符集都采用UTF-8,但在Ajax发送Json中文数据发现Firefox正常,IE为乱码;

  • 需要标明:contentType: "application/x-www-form-urlencoded; charset=utf-8",

  • 解决方法参考:http://91jquery.com/jQuery/1769.html

       jQuery(form).ajaxSubmit({
         url: "ajax.aspx?a=memberlogin",
         type: "post",
         dataType: "json",
         contentType: "application/x-www-form-urlencoded; charset=utf-8",
         success: showLoginResponse
       });
    
  • 网站框架访问样式不正常,发现无法正常加载Css或者Gzip;

    • 提示:
      • 内容编码错误
      • 无法显示您尝试查看的页面,因为它使用了无效或者不支持的压缩格式。
    • 回答:
      • 1.清除所有文件带有的BOM.
      • 2.反置PHP.ini里的zlib output compression设置。
      • 3.mysql数据库列字段名不能为desc关键字。

betterlife.zero's People

Contributors

skygreen2001 avatar

Stargazers

 avatar coolbreeze avatar

Watchers

 avatar James Cloos avatar  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.