Re: [Mason] mason redirect not working

2011-06-08 Thread Jonathan Swartz
Hi Anuj, $m->redirect is only for mod_perl environments. You should ask this in the appropriate internal Amazon mailing list. Jon On Jun 8, 2011, at 12:02 PM, Anuj Kumar wrote: > I wrote this in a .m file to redirect but its not redirecting > unless ( defined $order){ > # Redirect customer t

[Mason] mason redirect not working

2011-06-08 Thread Anuj Kumar
I wrote this in a .m file to redirect but its not redirecting unless ( defined $order){ # Redirect customer to YA home page FLLogError("Requested order does not exist. Redirecting..." ); my $url = $Std->url('/gp/css/homepage'); $m->redirect($url); # $m->comp('/gp/css/homepage'); # $m->abo

Re: [Mason] Component call with $.var fails with syntax error

2011-06-08 Thread Jonathan Swartz
This was a parsing omission - $. does not work inside <& &> tags. Will be fixed in the next release. Use $self-> as a workaround until then. Thanks Jon On Jun 8, 2011, at 7:32 AM, Matthias Dietrich wrote: > With Mason v2.07 and Catalyst, the following line: > > <& /user/edit_card/reel_add.mc,

[Mason] Component call with $.var fails with syntax error

2011-06-08 Thread Matthias Dietrich
With Mason v2.07 and Catalyst, the following line: <& /user/edit_card/reel_add.mc, friends => $.friends &> fails with the following message (two lines and lots of spaces after "friends"): syntax error at /serv/catalyst/unusuals/root/comps/user/user_profile_edit.mc line 92, near "$.friends