2010年8月1日星期日

Re: [fw-db] Need help with Pagination

Hi,

First of all my sincere apologies for annoying u all. The reason for posting my question a couple of million times was the non-delivery response i was getting as soon as i would send the email. I was being told that my email had some content which made it dangerous to send.

Again an apology for missing out the spell correction by Peter and thanks to you for making it clear enough for me to see.

I made the change and it worked like a charm!!! :) Thank you once again Guys... :)



On Sun, Aug 1, 2010 at 11:04 PM, Hector Virgen <djvirgen@gmail.com> wrote:

Well said, Bill! I have to admit I fat finger my code all the time and this is a very useful tip.

--
Hector Virgen
Sent from my Droid X

On Aug 1, 2010 11:58 AM, "Bill Karwin" <bill@karwin.com> wrote:


On Jul 31, 2010, at 3:07 PM, Y D wrote:

> Fatal error: Class 'Zend_Paginator_Adaptor_DbSelect' not...

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
$ ls
Adapter
AdapterAggregate.php
Exception.php
ScrollingStyle
SerializableLimitIterator.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



--
Regards,
YD

没有评论: