[Catalyst] setting up files and namespace for utilizing different
models in the same catalyst app
Matt S Trout
dbix-class at trout.me.uk
Thu Nov 23 21:24:26 GMT 2006
Ash Berlin wrote:
> Matt S Trout wrote:
>> Hermida, Leandro wrote:
>>> What would people recommend as a naming convention and namespace
>>> setup if one wanted to
>>> eventually use more than one model inside of the same Catalyst app?
>>
>> I tend to use
>>
>> MyApp::Library -> book+author DB
>> MyApp::Forum -> forum DB
>> MyApp::Web -> Catalyst app
>>
>>
>>
>
> In that situation I'd go for
>
> MyApp::Schema::Library
> MyApp::Schema::Forum
I don't like doing that. What if I move it to being a remote model via RPC, or
an LDAP directory, or something? It isn't a DBIC schema anymore, so it
shouldn't be named as such :)
More information about the Catalyst
mailing list