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...
精彩评论