>So..
>
>You have a driver class that drives/controls the application, it is
>your mod_perl handler. If using CGI scripts it is a cgi script.
>
>In that class (if using mod_perl, otherwise cgi script) you :
>* specify the configuration (path to templates, etc)
>* specify the type of data model used ( Maypole::Model::CDBI::Plain)
>* setup the model classes you want to use/
>* authentication / authorisation, etc
>
>
>You DON'T need to put actions in your classes, you only need to ensure
>they are declared in that classes namespace - i.e. sub
>classname::methodname. You can do this either in a driver/controllor
>class, cgi script or you can group the actions together in a class and
>'use' it in your driver/controllor class.
>
>You don't need to make your model data classes inherit from
>Maypole::Model::CDBI::Plain - the module will 'adopt' them when you
>call setup in your driver class.

Ok, so I finally got back to this Maypole stuff.

My mod_perl  handler look like:

package BS::Driver;
use Maypole::Application;

        BS::Driver->config->model("Maypole::Model::CDBI::Plain");
        BS::Driver->setup([qw/BS::DB::Provider/]);
        BS::Driver->config->uri_base("localhost/bs");
        
BS::Driver->config->template_root("../../../Maypole/templates/factory");


And, just to clairify, if I wanted to create some actions say in 
BS::Actions::Provider, I would say:

package BS::Actions::Provider;
use Maypole::Application;

BS::Actions::Provider shoot_oneself_in_the_head() :Exported
{
....

}

then in my Maypole driver say:

package BS::Driver;
use Maypole::Application;
use BS::Actions::Provider

......

correct?


So far I have the above, but, when I fire up my favorite text based brower 
and point it to http://localhost/bs, i get every developers favorite HTTP 
error -500. Log file says:

Can't locate object method "FIRSTKEY" via package "APR::Table" at 
/usr/lib/perl5/site_perl/5.8.8/Apache/MVC.pm line 114, <DATA> line 1.\n

so I now dont know what to do.... APR::Table is indeed in my @INC....

I must say that setting up my little test should be trivial, yet I feel like 
going out and finding a maypole to smash through my frigin monitor (CRT or 
no CRT)[EMAIL PROTECTED] Nevertheless, thanks you for all your help.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to