prototype,是一个后台原型系统,主要是解决开发中基础系统方案,基于onethink重构(onthink的功能大致相同),使用thinkphp 5.0.1开发,去除了独立模型和插件机制,保留install安装模块。
特点:
没有继承 controller
ajax提交返回和分页
html5 ajax异步上传文件 图片 裁剪功能
没有使用助手函数.
去除独立模型和插件功能(都玩composer,还要插件干嘛)
使用php7新特性
github仓库:https://github.com/static7/prototype.git
window系统 wampserver version 3.0.6 64bit 配置示例
配置如下通过虚拟域名访问
配置apache下的httpd-vhosts.conf文件 路径x:\wamp64\bin\apache\apache2.4.23\conf\extra
增加以下代码
documentroot x:/xxx/tp5/public/
servername www.tp5.com
errorlog logs/dummy-host.example.com-error.log
customlog logs/dummy-host.example.com-access.log common
options +indexes +followsymlinks +multiviews
allowoverride all
require all granted
然后重启wamp
再打开自己本地的c:\windows\system32\drivers\etchosts文件,配置如下:
127.0.0.1 www.tp5.com
注意:安装wamp好后,一定要切换到php7版本 部分css js 使用了bootstrap中文网开源项目免费 cdn 服务 请务必联网
关闭mysql 的严格模式
修改my.ini
sql-mode=strict_trans_tables,no_auto_create_user,no_engine_substitution
修改为
sql-mode=no_auto_create_user,no_engine_substitution
声明
此系统如应用于商业 请自行评估并承担相应责任
感谢 thinkphp 官方