Class ‘Zend_Db_Table’ not found
An up-to-date PHP installation is critical for security and performance. Request your complimentary PHP Upgrade Assessment with Alan.
New developers sometimes struggle with putting all of Zend Framework’s pieces together. This week someone asked me how to resolve the error:
Fatal error: Class ‘Zend_Db_Table’ not found.
The answer: he needs to “require” the file containing the Zend_Db_Table class, like so:
|
1 |
require_once 'Zend/Db/Table.php'; |
or (my preference) use the autoloader:
|
1 2 3 |
// ZF 1.8 or later: add these lines to your bootstrap file: require_once 'Zend/Loader/Autoloader.php'; $loader = Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true); |
ZF isn’t complicated if you know the few things you MUST use. The autoloader is one of them.
If you need help getting started with Zend Framework, contact me about Zend Framework mentoring, training, or troubleshooting.

Trackbacks & Pingbacks
[…] class Alan Seiden's Information Technology Class Zend_Db_Table …The answer: he needs to require the file containing the Zend_Db_Table class, like so: … Author: […]
Leave a Reply
Want to join the discussion?Feel free to contribute!