[Catalyst] Knowing which actions are avaiable for forward

Sebastian Riedel sri at oook.de
Mon May 23 19:28:56 CEST 2005


Am 23.05.2005 um 15:26 schrieb Diego de Lima:
> Is there a way which I can list all avaiable actions I can forward,  
> on a View or Controller?
>
> I don´t want to know _if_ I can forward, I want to get an array  
> with all actions I can forward to.

     use Catalyst::Utils;
     use Data::Dumper;

     warn Dumper Catalyst::Utils::reflect_actions('MyApp::C::Foo');

--
sebastian




More information about the Catalyst mailing list