Re: [Maypole] Problems using an alternative CDBI model

From: Sebastian Riedel (sri at oook.de)
Date: Wed Oct 20 2004 - 18:52:47 BST


Matt Adams:
> ========= BEGIN CODE =========
>
> package MyApp;
> use MyApp::Constants;
> $ENV{MAYPOLE_CONFIG} = BINPATH . '/MyApp.yaml';

BEGIN { $ENV{MAYPOLE_CONFIG} = BINPATH . '/MyApp.yaml'; }

>
> use Maypole::Application qw(-Debug Config::YAML Authentication::Abstract);
> use Maypole::Constants;
>
> MyApp->config->{model} = "MyApp::Model::CDBI";
> MyApp->setup(
> MyApp->config->{dsn},
> MyApp->config->{user},
> MyApp->config->{pass}
> );
> MyApp->config->{view} = "MyApp::View::TT";
> MyApp->config->{display_tables} = qw[[this that me]];
>
> ========== END CODE ==========
 sebastian

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT