On Jul 31, 2010, at 3:07 PM, Y D wrote:
Fatal error: Class 'Zend_Paginator_Adaptor_DbSelect' not found in C:\wamp\www\ZCFPRD\application\controllers\DocumentsController.php on line 2144
I face this problem quite often but it slips off my brain how to cater it. Can someone please explain to me why I face this problem and what exactly I should do when I face it.
When you get an error that the class was not found, the first thing you should check is that you spelled the class name correctly. It must match the name of the class exactly.
Here's what you should do when you face this problem. Look into the Zend Framework library directory structure on the filesystem. Check the spelling of the files and directories. Compare them to the class name you tried to use.
$ cd ZendFramework/library/Zend/Paginator$ lsAdapterAdapterAggregate.phpException.phpScrollingStyleSerializableLimitIterator.php
Aha! We can see "Adapter" in this list, but the library spells it with an "er" instead of an "or". You tried to reference a class name that does not match the spelling of the directory in the Zend Framework library. That's why it couldn't find it. Spelling is important.
Now change your code to match the spelling:
. . .$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_DbSelect($getdata));. . .
You don't have to post your question to the mailing list repeatedly. People answer almost every question on the mailing list, but it might take a couple of days. Please remember that people answer questions for free, as volunteers. Please be patient.
Also when someone answers your question, as Pieter did, you should read their answer carefully before you post your question again. Maybe it contains the information to fix the problem.
Regards,
Bill Karwin
没有评论:
发表评论