Using Zend_CodeGenerator_Php to Automate Creation of Models

December 22, 2009

Zend Framework

Troubled with a very manual and inefficient process of creating models for many database tables, I looked into a way of making this process more automated and efficient. Zend_CodeGenerator_Php was my answer. In a post on my blog I explain how I was able to use Zend_CodeGenerator_Php_Class to create a process that will grab all the tables from my database as well as all the fields for each table and create all the models and db table abstracts for my application with the call of one method.

I hope this post can help others with similar issues looking for a better solution.

“http://www.joeyrivera.com/2009/automate-model-creation-with-zend_codegenerator_php_class/”:http://www.joeyrivera.com/2009/automate-model-creation-with-zend_codegenerator_php_class/

2 Responses to “Using Zend_CodeGenerator_Php to Automate Creation of Models”

  1. inxil Says:

    I’ve also been working with the Code Generator to create my models. I did a screen cast on my tool at http://cmorrell.com/web-development/more-php-modelling-383 . You can get the source (and more) at http://github.com/inxilpro/Galahad-FE/

    Chris