WANGFRAME如何解决多表关联和复杂条件检索?
分类: 工作日志 ( 修改 | 删除 )
11
2013-05
这个更加简单,只用VIEW方式就可以解决,关键的地方在于写好sql语句,当然呀设置主键是必须的,否则只有列表页面没有详细查看页面。复杂条件检索你自己做好检索页面,蒋检索条件传入view/index.php,在页面sql写好接收参数检索语句,一切OK。检索条件至于是=、《》、like这个没有限制,sql写好就行。
发布于 22小时前, 阅读(0) | 评论(0) | 投票(0) | 收藏(0) 阅读全文...
WANGFRAME如何解决父子表关系?
分类: 工作日志 ( 修改 | 删除 )
11
2013-05
在WANGFRAME中,以ORDER和ORDERDETAIL为例,父表ORDER以表形式生成CRUD,子表ORDERDETAIL以视图方式生成LIST和DETAIL,将父表的ORDERID作为参数传递给子表ORDERDETAIL的index.php,修改sql语句增加按照orderid检索条件,生成的页面---成功。 就这么简单
Welcome to WANGFRAME
欢迎使用"旺"框架
WANGFRAME is an featherwight Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to crud much faster than you could if you were writing code from mysql database.WANGFRAME lets you creatively focus on your project by minimizing the amount of code needed for a given task.
"旺"框架是一个羽量级PHP应用程序开发框架。目标是使您用MYSQL数据库表或者视图快速构建CRUD应用,它使您更多的把精力投入到项目设计上而尽可能减少任务的代码开发量。
To finish a crud module with WANGFRAME, the only work you need to do is change the database link strings,name of a table or a view and its PK.
使用"旺"框架完成一个CRUD模块,您所需要做的只是更换数据库连接字串、表或者视图的名字及主键。
The WANGFRAME uses two language, english or chinese,you can easily modify by changing flag parameters in inc.php.
"旺"框架包含中英文两种语言支持,您可以通过修改inc.php中的flag参数方便地切换语言。
You can setup a diffrence database link for a table or a view in 1.0.1.
This means multi-databases can be used in a project.
Only one database link can be setup for a project in 1.1.
Welcome to WANGFRAME
欢迎使用"旺"框架
WANGFRAME is an featherwight Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to crud much faster than you could if you were writing code from mysql database.WANGFRAME lets you creatively focus on your project by minimizing the amount of code needed for a given task.
"旺"框架是一个羽量级PHP应用程序开发框架。目标是使您用MYSQL数据库表或者视图快速构建CRUD应用,它使您更多的把精力投入到项目设计上而尽可能减少任务的代码开发量。... read more