in reply to Class::DBI connect info from file?
I wanted to make a Class::DBI object automatically set up by Class::DBI::Pg, but also with mixins of Class::DBI::AsForm and Class::DBI::FromCGI (and CGI qw/:standard/ as per the ::AsForm docs).
I fiddled for a while and when it took too long, just used the Pg part and ditched the other two modules. I had added a method to the object as in the ::AsForm docs, create_or_edit(). But I kept getting an error to the effect that "Person cannot SELECT" and then a bunch of html tags embedded in the SQL! (e.g.
Probably I should have persevered and maybe improved my understanding of such things, or.. Is this the problem mentioned about using automatic setup modules above? I thought it would be neat to just use these as my base and have an automatic editting script set up, especially since the other modules I found on cpan to do that seemed buggy.
|
|---|