user3369592 user3369592 - 7 months ago 119
Perl Question

perl redirect url with the paramter using $Std->url()

I am new to Perl/Mason.
My url is
which will return a png image.
In this url,
is the parameter. ( equals to $orderViewHelper->{orderId} ).
I have created an
which will hold
object so I can access it in other classes.
Is there a way that I can use
to get the image and put it into myImage?

$orderViewHelper->{myImage} = $Std->url('$orderViewHelper->{orderId}/2016image',
{ absolute =>1


I think this will work:

$orderViewHelper->{myImage} = $Std->url("$orderViewHelper->{orderId}/2016image", { absolute =>1 });