[Catalyst] New base classes

Sebastian Riedel sri at oook.de
Wed Nov 2 04:01:16 CET 2005


Catalyst::Base is very powerful and contains a lot of code which is  
mostly not needed in models and views,
so we've split everything into new more intuitive ones now.

     package MyApp::Controller::Foo;
     use base 'Catalyst::Controller';
     1;

     package MyApp::Model::Bar;
     use base 'Catalyst::Model';
     1;

     package MyApp::View::Baz;
     use base 'Catalyst::View';
     1

The old Catalyst::Base is still supported and there are no plans to  
deprecate it.


--
sebastian




More information about the Catalyst mailing list