[Catalyst] Configuring Catalyst::Model::DBIC::Schema from YAML
    Jon Warbrick 
    jw35 at cam.ac.uk
       
    Sun Oct  1 19:51:28 CEST 2006
    
    
  
On Thu, 28 Sep 2006, Ash Berlin wrote:
> Jon Warbrick wrote:
> > Can a Catalyst::Model::DBIC::Schema model be configured from a YAML 
> > file via Catalyst::Plugin::Config::YAML? If so, how? Apologies if it's in 
> > the documentation somewhere, but if so I've yet to find it...
> >
> > Jon.
> >
> >   
> The answer is yes. Strip off "Catalyst::" from the component name. e.g.
> 
> name: MyApp
> Model::MyModel:
>   arg1: foo
>   arg2:
>     - bar
>     - baz
> View::TT
>   DEBUG: 1
Many thanks (and to Brian Cassidy who said much the same). I thought I'd 
tried most combinations of various truncated component names but obviously 
not this one. Now working.
 
> As to where it's documented, I cant seem to find it, but I'm sure it is 
> somewhere, tho its clearly not obvious enough since I know its there and 
> cant find it.
Glad it's not just me!
Jon.
-- 
Jon Warbrick
Web/News Development, Computing Service, University of Cambridge
    
    
More information about the Catalyst
mailing list