global data .....

[prev] [thread] [next] [Date index for 2005/01/28]

From: raptor
Subject: global data .....
Date: 19:35 on 28 Jan 2005
hi Apache::ASP & cdbi,

I want to use Class::DBI::Loader to automaticly create Class::DBI-classes with f.e. namespace => Blah
the problem is that I can't fugure where to put  :

  my $loader = Class::DBI::Loader->new(
    dsn                     => "dbi:mysql:dbname",
    user                    => "root",
    password                => "",
    namespace               => "Blah",
    additional_classes      => qw/Class::DBI::AbstractSearch/,
    additional_base_classes => qw/My::Stuff/,
    constraint              => '^foo.*',
    relationships           => 1
  );


So that later $loader be accessible from anywhere and more importantly all the Blah::... modules too..
Tried global.asa and Application_OnStart(), didn't seem to work or I'm doing it wrongly.

One more thing I will want f.e. to modify generated classes !! any idea on this too...

As u may guessed the idea is not to do this on every seesion or script start.

tia

(message missing)

global data .....
raptor 19:35 on 28 Jan 2005

Re: global data .....
Perrin Harkins 20:01 on 28 Jan 2005

Re: global data .....
raptor 22:19 on 28 Jan 2005

Re: global data .....
Perrin Harkins 05:09 on 29 Jan 2005

Re: global data .....
raptor 16:54 on 29 Jan 2005

Re: global data .....
Perrin Harkins 02:57 on 30 Jan 2005

Re: global data .....
raptor 16:34 on 30 Jan 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52