News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joey Rivera's Blog:
Automate Db Model Creation with Zend_CodeGenerator_Php_Class
December 22, 2009 @ 08:33:06

On the Zend Developer Zone today there's a pointer to a new blog post from Joey Rivera about automating the creation of models in your Zend Framework application via the Zend_CodeGenerator_Php_Class.

This tool has to do a good bit of database manipulation so I've decided I'll build it in PHP using Zend Framework. I'll be using Zend_Db_Table_Abstract to communicate with the db tables from my project and I'll be creating a model for each table as well to store and manipulate data. I'll be working with lots of tables in the database and many have lots of fields.

Because the component lets you dynamically create PHP code, it can easily be used to create the model classes. Joey includes a link to the code you can use to add it into your own projects.

0 comments voice your opinion now!
automate model creation zendframework class


blog comments powered by Disqus

Similar Posts

Thomas Weidner's Blog: Zend_File_Transfer examples or using validators to increase security

Zend Developer Zone: Zend Framework 1.8.0 Released

Lingohub.com: Internationalization How To for the 5 most popular PHP frameworks

Martynas Jusevicius' Blog: PHP 5 features: Class autoloading

Michelangelo van Dam: Learning lessons at ZendUncon


Community Events

Don't see your event here?
Let us know!


podcast series introduction api symfony laravel5 interview language community unittest laravel threedevsandamaybe opinion release extension security version voicesoftheelephpant framework library

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework