[Catalyst] Accessing $c from Model

Jason Kohles email at jasonkohles.com
Tue Mar 6 19:51:42 GMT 2007


On Mar 5, 2007, at 7:02 AM, Scott Thomson wrote:

> Ok, I think I'm close...
>
> My main schema class:
>
> package DB;
>
> use base qw/DBIx::Class::Schema  DBIx::Class::AccessorGroup/;
>
> __PACKAGE__->mk_group_accessors(simple => 'context');
> __PACKAGE__->load_classes(qw//);
> 1;
>
Very Bad Things are likely to happen if you ever attempt to run your  
application under the debugger when you have a package named 'DB'.   
I'd recommend using a different name...

-- 
Jason Kohles
email at jasonkohles.com
http://www.jasonkohles.com/
"A witty saying proves nothing."  -- Voltaire


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070306/adb65b20/attachment.htm


More information about the Catalyst mailing list