[Catalyst] Explicit Subroutin Call
Omid Houshyar
omid at ozino.com
Thu Jan 19 15:21:33 CET 2006
Davood Firoozian wrote:
> Hi,
>
> I have a controller module called reseller in my application, is this
> true to call getReseller sub from another Controller module and if yes
> how ?
>
>
> Controller/reseller.pm
> ----------------------------------------------
> package panel::Controller::reseller;
> use strict;
> use warnings;
> use base 'Catalyst::Controller';
> sub getResellers : Private {
> my $owner = $_;
> return $owner;
> }
> 1
>
>
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
Hi
You can call your function like this:
panel::Controller::reseller->getResellers("omid");
But may be there's a better solution ;-). I'm new in Catalyst...
More information about the Catalyst
mailing list