开发者

PHP MySQL page generation without DB generation framework

I'm looking for a web framework that lets me generate CRUD pages for an existing database.

I've tried frameworks like symfony, and even considered rails (completely forgetting php), but those frameworks create and manage the DB for me, and I don't need that.

I need a tool with which you create object-DB mappings, and non-default behavior, and you get your pages generated, but without having to have created the DB with the same framework. I don't mind updating the mappings and the DB migration scripts by myself.

Is there such a wonderful thing in the world?

Edit: In other words, I need a php framework that adapts to my DB structure, not a framework that forces me their DB structure.

Edit2: I'm looking for something similar to xataface, but unfortunately the gpl 开发者_如何转开发is enough to freak out any corporate sysadmin.


One of these?

http://www.phpframeworks.com/


I think you have a misunderstanding of the Rails and some other frameworks when you say they force you to their model. Rails provides an access layer that is easily adapted to legacy code using the ActiveRecord pattern. When properly implemented these models introspect on your database schema for the attributes that accesible in your model instance. So from there you would just need to create the models that are associated with your legacy tables.

The confusion may come from migrations. In rails you can dump an existing database as your starting point and then write migrations for any changes that you make from that point going forward.

I am sure there are similar facilities in symfony and codeigniter on the PHP side of things.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜