开发者

Cakephp - Baking custom models

I need to bake a large project but a开发者_运维技巧 requirement is each model has its schema listed at the top as a multi-line comment.

Any ideas ?

Thanks, Alex


Start in your [PATH]/cake/console/templates/classes/model.ctp file.

Manually connect to the database using an old-fashioned php connect string.

Pull the table structure in a "describe" query.

Loop through, print out the table structure in comments.

cake bake...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜