[Catalyst] Context Object ($c)
romkey at apocalypse.org
Thu Feb 18 13:25:42 GMT 2010
On Feb 18, 2010, at 7:54 AM, Amit Jha wrote:
> I have the following 2 class structure. I am unable to access the $c in get_name subroutine called from subroutine site_name of Myapp::Controller::Sites::Configuration. Can anyone help, how can I access the $c if I am call a subroutine directly not by dispatching the call
Just pass $c as an argument to the subroutine call.
$name = $obj->get_name($c);
- john romkey
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst