[Catalyst] Context Object ($c)
John Romkey
romkey at apocalypse.org
Thu Feb 18 13:25:42 GMT 2010
On Feb 18, 2010, at 7:54 AM, Amit Jha wrote:
> Hi,
>
> 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
http://www.romkey.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100218/52a069be/attachment.htm
More information about the Catalyst
mailing list