[Catalyst] Where has Maypole's pager gone?

Will Hawes info at whawes.co.uk
Fri Apr 29 10:05:27 CEST 2005

I have just re-read my previous message. Allow me to rephrase without attempting to spam the list, as I believe it might not have made sense.

I would like to use both Catalyst::Model::CDBI::Sweet and Catalyst::Model::CDBI::CRUD in an application to allow me to implement list views with a pager. But it's not obvious to me how to do this.

I have tried to use the Hops application to set this up. Swapping "use Catalyst::Model::CDBI::CRUD;" for "use Catalyst::Model::CDBI::Sweet;" in Hops::M::CDBI and running server.pl gives this error:

[Thu Apr 28 17:45:20 2005] [catalyst] [debug] Found home "E:\Hops-0.03"
Use of 'new' is deprecated at C:/Perl/lib/NEXT.pm line 75. Use 'create' instead
Couldn't instantiate "Hops::M::CDBI", "password is not a column of Hops::M::CDBI
 at C:/Perl/lib/NEXT.pm line 75
" at C:/Perl/site/lib/Catalyst/Engine.pm line 665
Changing the call to NEXT->new to NEXT->create does not work, that gives me:
[Thu Apr 28 17:54:35 2005] [catalyst] [debug] Found home "E:\Hops-0.03"
Couldn't instantiate "Hops::M::CDBI", "Can't call NEXT::create from Hops::M::CDB
I::new at E:/Hops-0.03/script/../lib/Hops/M/CDBI.pm line 17
" at C:/Perl/site/lib/Catalyst/Engine.pm line 665

If anyone has done something similar or knows where I am going wrong I'd be grateful to hear.


More information about the Catalyst mailing list