[Catalyst] accessing methods in another controller?

Matt S Trout dbix-class at trout.me.uk
Sun Aug 5 18:05:46 GMT 2007


On Sun, Aug 05, 2007 at 10:59:50AM -0400, Alan Spector wrote:
> Hi all,
> 
> I had a quick question, what is the best way within a Controller to  
> access  a method in another controller?  or is it better to put the  
> method (it's a fetch for data in a particular format) in my Model?

What ash said, but I'd probably push it into the model anyway.

Generally the controller should be application control flow logic and
very little else.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/                    http://www.shadowcat.co.uk/ 



More information about the Catalyst mailing list