[Catalyst] setting up files and namespace for utilizing different models in the same catalyst app

Matt S Trout dbix-class at trout.me.uk
Wed Dec 6 12:40:10 GMT 2006


On 4 Dec 2006, at 14:11, Hermida, Leandro wrote:

>
>
> Hi everyone,
>
> Sorry to send this post again, but I never really got any response  
> from
> users as to advice on setting up namespaces in Catalyst when using  
> more
> than one model for the same database in your Catalyst app.  Any
> suggestions/advice for what I have done below?  Also for the separate
> question about two responses saying MyApp::Web being the namespace for
> the catalyst app.  I didn't understand that since it seems that all
> Catalyst stuff should goes MyApp::Model, MyApp::View and
> MyApp::Controller and I have no control over this since when I  
> initially
> run "catalyst.pl MyApp" it sets up these namespaces for me.

(1) I don't always use catalyst.pl
(2) there's nothing stopping you running catalyst.pl MyApp::Web
(3) other than that, go re-read the reply you already got :)

-- 
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +





More information about the Catalyst mailing list