[Catalyst] schema

Jonas Alves jonas.alves at gmail.com
Sun Dec 24 16:56:20 GMT 2006


> If I write the name of the database in more modules it will be harder to
> change its name, but now I I think that I could use something like:
>
> $c->model($c->config->{db});
>
> and just change the name of the db in the application config.

Or you can just use $c->model() and define the "default_model"
parameter in the config file.

-- 
Jonas



More information about the Catalyst mailing list