[Catalyst] Catalyst without template
Dmitri Pissarenko
dmitri.pissarenko at gmail.com
Thu May 17 20:59:18 GMT 2007
Hello!
On 5/17/07, Christopher H. Laco <claco at chrislaco.com> wrote:
> $c->res->body
>
>
> If it has stuff, I'm pretty sure it bypasses the View.
If I use this code
sub buttonPressed : Local {
my ( $self, $c ) = @_;
my $name = $c->request->params->{name};
my $log = $c->log;
$log->debug("buttonPressed");
$c->res->body = 'Hello ' . $name . ', welcome to the world of Dojo!\n';
}
I get following error (in the log file):
[debug] buttonPressed
[error] Caught exception in HelloWorld::Controller::Root->buttonPressed "Can't m
odify non-lvalue subroutine call at C:/work/business/prog/i5invest/2007_05_17_ba
sicAjaxWithCatalyst/HelloWorld/script/../lib/HelloWorld/Controller/Root.pm line
51."
[info] Request took 0.060205s (16.610/s)
What am I doing wrong?
TIA
Dmitri Pissarenko
More information about the Catalyst
mailing list