On 2005-07-05, Jason Purdy <[EMAIL PROTECTED]> wrote:
>
> I'm working on the BREAD framework and I have the callback thing working
> and it's creating runmodes, but when the first one ('start') is trying
> to be called, I get:
>
> $ perl -I/home/jason/cpan/CAP-Bread/lib index.cgi
> CGI::Application::Plugin::BREAD::bread_db() called!
> CGI::Application::Plugin::BREAD::register_runmodes() called!
>
> Error executing run mode 'start': Can't locate object method "start" via
> package "MyBREADApp" at /usr/share/perl5/CGI/Application.pm line 154.
> at index.cgi line 8
>
> So I have my dynamic 'start' runmode defined in the Plugin and the
> cgiapp is looking for it in the base class, but I have it defined in the
> Plugin class.
That might be easy. Try exporting your start mode from your plugin.
Mark
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]