News Feed
Sections




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

Rob Allen's Blog:
Metadata from Zend_Db_Table_Abstract
June 01, 2009 @ 07:53:14

As a part of his WinPHP Challenge project Rob Allen has come up with a method to combing the Zend_Db_Table component of the Zend Framework with the SuccessSQL tool to extract the table information directly from the database.

Zend_Db_Table provides all this information directly which is quite useful, however the intended use-case for Zend_Db_Table is that you extend Zend_Db_Table_Abstract for each table that you want to interact with. Obviously, SuccesSQL doesn't know in advance the names of the tables, so I created a stub class that allowed me to instantiate a Zend_Db_Table dynamically.

A few code snippets later and he has a working example showing a var_dump of the object's output - complete with full data for the two columns - ID and artist.

0 comments voice your opinion now!
tutorial zenddbtable successql zendframework


blog comments powered by Disqus

Similar Posts

Patrick Reilly's Blog: Zend Framework Project Teams Need You

Lehi Sanchez's Blog: The Ultimate Open Source Web Server Installation Part 1

PHPMaster.com: ClamAV as a Validation Filter in Zend Framework

Jim Plush's Blog: Followup on rethinking Zend Models with DDD - Framework code included

Stefan Mischook's Blog: Cannot load mysql extension error - Video Tutorial How To


Community Events





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


bugfix install api introduction deployment voicesoftheelephpant zendserver unittest interview community framework release language library opinion laravel series podcast symfony package

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