global data .....
[prev]
[thread]
[next]
[Date index for 2005/01/28]
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
|