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:
or (my preference) use the autoloader:
// 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.