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?
> 
> tia,
> 
> alan
> 

$c->controller('OtherController')->foo($c)

Its that simple. There is a $c->forward method (look in Catalyst.pm for
docs) but most of the time you don't need to use it.

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to