[Catalyst] Configuring Catalyst::Model::DBIC::Schema from YAML

Ash Berlin ash at cpan.org
Thu Sep 28 16:18:44 CEST 2006


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

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.

Ash




More information about the Catalyst mailing list