hikmat30ce / laymeneasylife
本项目基于 Yii 2 基本项目模板
dev-master
2016-11-30 03:38 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.5
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-swiftmailer: *
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-18 19:54:18 UTC
README
此项目的目的是自动化在选定的模型中创建数据库列,全部从前端操作,无需编码。
##演示网站 http://laymeneasylife.azurewebsites.net/
目录结构
coreviewmodels/ The core models for this project
crudTemplates/ The templates which will create model and crud views for us
modules/Generator The code generator which is ingerited from gii
viewmodels/ The models which will be created by code generator
The rest structure is same as yii2 basic application
##至今已完成的事情
GII 被覆盖,并开发了一个自定义生成器。它有一个单行文本框。在文本框中输入值将为您执行以下操作。
Create a table {value in text box}
Create a model from the table created in above step
Create crud from above model with search model
Add the newly created model name in models table, so that it will be available for you when creating formfields for this model.
现在您的新 CRUD 已准备好,新表将只有 id, created_at, updated_at, created_by 和 updated_by 列。
要创建表单字段,请转到 mean 中的 FormFields 并填写相关信息。
##未来计划
在表单字段模型中添加所有可能的字段。